com.gisgraphy.geoloc
Class GeolocQueryHttpBuilder
java.lang.Object
com.gisgraphy.geoloc.GeolocQueryHttpBuilder
- Direct Known Subclasses:
- StreetSearchQueryHttpBuilder
public class GeolocQueryHttpBuilder
- extends Object
A GeolocQuery Query builder. it build geolocQuery from HTTP Request
- Author:
- David Masclet
- See Also:
Pagination
,
Output
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeolocQueryHttpBuilder
public GeolocQueryHttpBuilder()
getInstance
public static GeolocQueryHttpBuilder getInstance()
buildFromHttpRequest
public com.gisgraphy.geoloc.GeolocQuery buildFromHttpRequest(javax.servlet.http.HttpServletRequest req)
- Parameters:
req
- an HttpServletRequest to construct a GeolocQuery
constructMinimalQuery
protected com.gisgraphy.geoloc.GeolocQuery constructMinimalQuery(com.vividsolutions.jts.geom.Point point,
double radius)
- Create a basic GeolocQuery. this method must be overide
if we need to create inheritance object
- Parameters:
point
- the JTS point to create the queryradius
- the radius to search around
isPointRequired
protected boolean isPointRequired()
- Returns:
- true if the point is required
Copyright © 2012. All Rights Reserved.