com.gisgraphy.servlet
Class GeolocServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.gisgraphy.servlet.GisgraphyServlet
com.gisgraphy.servlet.GeolocServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class GeolocServlet
- extends GisgraphyServlet
Provides a servlet Wrapper around The Gisgraphy geoloc Service, it Maps web
parameters to create a GeolocQuery
- Author:
- David Masclet
- See Also:
- Serialized Form
Methods inherited from class javax.servlet.http.HttpServlet |
getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PLACETYPE_PARAMETER
public static final java.lang.String PLACETYPE_PARAMETER
- See Also:
- Constant Field Values
LAT_PARAMETER
public static final java.lang.String LAT_PARAMETER
- See Also:
- Constant Field Values
LONG_PARAMETER
public static final java.lang.String LONG_PARAMETER
- See Also:
- Constant Field Values
RADIUS_PARAMETER
public static final java.lang.String RADIUS_PARAMETER
- See Also:
- Constant Field Values
DISTANCE_PARAMETER
public static final java.lang.String DISTANCE_PARAMETER
- See Also:
- Constant Field Values
DEFAULT_MAX_RESULTS
public static final int DEFAULT_MAX_RESULTS
- See Also:
- Constant Field Values
logger
protected static final org.slf4j.Logger logger
- The logger
GeolocServlet
public GeolocServlet()
init
public void init()
throws javax.servlet.ServletException
- Overrides:
init
in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
- Overrides:
doGet
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
setGeolocSearchEngine
public void setGeolocSearchEngine(IGeolocSearchEngine geolocSearchEngine)
- Parameters:
geolocSearchEngine
- the geolocSearchEngine to set
getGisgraphyServiceType
public GisgraphyServiceType getGisgraphyServiceType()
- Specified by:
getGisgraphyServiceType
in class GisgraphyServlet
- Returns:
- the
GisgraphyServiceType
that the servlet handle
getErrorVisitor
public IoutputFormatVisitor getErrorVisitor(java.lang.String errorMessage)
- Specified by:
getErrorVisitor
in class GisgraphyServlet
- Parameters:
errorMessage
- the error message to be treated by the visitor
- Returns:
- an instance of the outputFormatVisitor for the servlet
Copyright © 2010. All Rights Reserved.