com.gisgraphy.servlet
Class FulltextServlet

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.FulltextServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class FulltextServlet
extends com.gisgraphy.servlet.GisgraphyServlet

Provides a servlet Wrapper around The Gisgraphy fulltext Service

Author:
David Masclet
See Also:
GeolocServlet, Serialized Form

Field Summary
static String ALLWORDSREQUIRED_PARAMETER
           
static String COUNTRY_PARAMETER
           
static String LANG_PARAMETER
           
static String LAT_PARAMETER
           
protected static org.slf4j.Logger logger
          The logger
static String LONG_PARAMETER
           
static String PLACETYPE_PARAMETER
           
static String QUERY_PARAMETER
           
static String RADIUS_PARAMETER
           
static String SPELLCHECKING_PARAMETER
           
static String STYLE_PARAMETER
           
 
Fields inherited from class com.gisgraphy.servlet.GisgraphyServlet
APIKEY_PARAMETER, DEBUG_MODE_PARAMETER_NAME, debugMode, FORMAT_PARAMETER, FROM_PARAMETER, INDENT_PARAMETER, TO_PARAMETER
 
Constructor Summary
FulltextServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
 com.gisgraphy.serializer.common.IoutputFormatVisitor getErrorVisitor(String errorMessage)
           
 com.gisgraphy.domain.valueobject.GisgraphyServiceType getGisgraphyServiceType()
           
 void init()
           
 void setFullTextSearchEngine(com.gisgraphy.fulltext.IFullTextSearchEngine fullTextSearchEngine)
           
 
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

COUNTRY_PARAMETER

public static final String COUNTRY_PARAMETER
See Also:
Constant Field Values

LANG_PARAMETER

public static final String LANG_PARAMETER
See Also:
Constant Field Values

STYLE_PARAMETER

public static final String STYLE_PARAMETER
See Also:
Constant Field Values

PLACETYPE_PARAMETER

public static final String PLACETYPE_PARAMETER
See Also:
Constant Field Values

QUERY_PARAMETER

public static final String QUERY_PARAMETER
See Also:
Constant Field Values

ALLWORDSREQUIRED_PARAMETER

public static final String ALLWORDSREQUIRED_PARAMETER
See Also:
Constant Field Values

SPELLCHECKING_PARAMETER

public static final String SPELLCHECKING_PARAMETER
See Also:
Constant Field Values

LAT_PARAMETER

public static final String LAT_PARAMETER
See Also:
Constant Field Values

LONG_PARAMETER

public static final String LONG_PARAMETER
See Also:
Constant Field Values

RADIUS_PARAMETER

public static final String RADIUS_PARAMETER
See Also:
Constant Field Values

logger

protected static org.slf4j.Logger logger
The logger

Constructor Detail

FulltextServlet

public FulltextServlet()
Method Detail

init

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

doGet

protected void doGet(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse resp)
              throws javax.servlet.ServletException,
                     IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

setFullTextSearchEngine

public void setFullTextSearchEngine(com.gisgraphy.fulltext.IFullTextSearchEngine fullTextSearchEngine)
Parameters:
fullTextSearchEngine - the fullTextSearchEngine to set

getGisgraphyServiceType

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

getErrorVisitor

public com.gisgraphy.serializer.common.IoutputFormatVisitor getErrorVisitor(String errorMessage)
Specified by:
getErrorVisitor in class com.gisgraphy.servlet.GisgraphyServlet


Copyright © 2012. All Rights Reserved.