com.gisgraphy.geoloc
Class GeolocQueryHttpBuilder

java.lang.Object
  extended by 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

Constructor Summary
GeolocQueryHttpBuilder()
           
 
Method Summary
 com.gisgraphy.geoloc.GeolocQuery buildFromHttpRequest(javax.servlet.http.HttpServletRequest req)
           
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
static GeolocQueryHttpBuilder getInstance()
           
protected  boolean isPointRequired()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeolocQueryHttpBuilder

public GeolocQueryHttpBuilder()
Method Detail

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 query
radius - the radius to search around

isPointRequired

protected boolean isPointRequired()
Returns:
true if the point is required


Copyright © 2012. All Rights Reserved.