com.gisgraphy.servlet
Class GeocodingServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.gisgraphy.servlet.GisgraphyServlet
              extended by com.gisgraphy.servlet.AbstractAddressServlet
                  extended by com.gisgraphy.servlet.GeocodingServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class GeocodingServlet
extends com.gisgraphy.servlet.AbstractAddressServlet

Provides a servlet Wrapper around The Gisgraphy geocoding Service, it Maps web parameters to create a AddressQuery

Author:
David Masclet
See Also:
Serialized Form

Field Summary
protected static org.slf4j.Logger logger
          The logger
 
Fields inherited from class com.gisgraphy.servlet.AbstractAddressServlet
ADDRESS_PARAMETER, CALLBACK_PARAMETER, COUNTRY_PARAMETER, INDENT_PARAMETER, OUTPUT_FORMAT_PARAMETER, POSTAL_PARAMETER, QUERY_MAX_LENGTH
 
Fields inherited from class com.gisgraphy.servlet.GisgraphyServlet
APIKEY_PARAMETER, DEBUG_MODE_PARAMETER_NAME, debugMode, FORMAT_PARAMETER, FROM_PARAMETER, TO_PARAMETER
 
Constructor Summary
GeocodingServlet()
           
 
Method Summary
 com.gisgraphy.domain.valueobject.GisgraphyServiceType getGisgraphyServiceType()
           
 void init()
           
 void processRequest(com.gisgraphy.addressparser.AddressQuery query, javax.servlet.http.HttpServletResponse resp)
           
 void setGeocodingService(com.gisgraphy.geocoding.IGeocodingService geocodingService)
           
 
Methods inherited from class com.gisgraphy.servlet.AbstractAddressServlet
doGet, getAddressQueryHttpBuilder, getErrorVisitor
 
Methods inherited from class com.gisgraphy.servlet.GisgraphyServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, isDebugMode, sendCustomError, setDebugMode, setResponseContentType
 
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
 

Field Detail

logger

protected static final org.slf4j.Logger logger
The logger

Constructor Detail

GeocodingServlet

public GeocodingServlet()
Method Detail

setGeocodingService

public void setGeocodingService(com.gisgraphy.geocoding.IGeocodingService geocodingService)

getGisgraphyServiceType

public com.gisgraphy.domain.valueobject.GisgraphyServiceType getGisgraphyServiceType()
Specified by:
getGisgraphyServiceType in class com.gisgraphy.servlet.AbstractAddressServlet

init

public void init()
          throws javax.servlet.ServletException
Overrides:
init in class com.gisgraphy.servlet.GisgraphyServlet
Throws:
javax.servlet.ServletException

processRequest

public void processRequest(com.gisgraphy.addressparser.AddressQuery query,
                           javax.servlet.http.HttpServletResponse resp)
                    throws IOException
Specified by:
processRequest in class com.gisgraphy.servlet.AbstractAddressServlet
Throws:
IOException


Copyright © 2012. All Rights Reserved.