I'm working on web services in Java and using GeoTools java api for wfs operations.
I have a wfs store and a lot of features in it. I do some operations via geotools wfs api for example buffer, intersect etc. My problem is not building feature from points. I'm using geotools for building my geo web services and want to create a web service method that must use two parameters(lat and lon) and return content of a feature.
This returned feature must be perfectly matched with given latitude and longitude so this coordinates should point out this feature How can I do that ? Thanks in advance.
EDIT: Such as wms,wfs ogc services are rest apis and return xml responses. I don't want to use this services with http request or rest api clients.Also I don't want to parse directly response document at the same time doing all operations in client side is not useful for my app. I want to build my web service composition for some defined operations in wfs,wms and etc.