com.googlecode.solrgeonames.server
Class GeoServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.googlecode.solrgeonames.server.GeoServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class GeoServlet
extends javax.servlet.http.HttpServlet

A basic servlet. The real work happens in the filter

Author:
Greg Pendlebury
See Also:
Serialized Form

Field Summary
static String DEFAULT_ROWS
           
static String DEFAULT_START
           
 
Constructor Summary
GeoServlet()
           
 
Method Summary
 void destroy()
          Shuts down any objects requiring such.
protected  void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Process an incoming GET request.
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Process an incoming POST request.
 void init()
          Initialise the Servlet, called at Server startup
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
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

DEFAULT_START

public static String DEFAULT_START

DEFAULT_ROWS

public static String DEFAULT_ROWS
Constructor Detail

GeoServlet

public GeoServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Initialise the Servlet, called at Server startup

Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException - If it found errors during startup

doGet

protected void doGet(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     IOException
Process an incoming GET request.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
request - The incoming request
response - The response object
Throws:
javax.servlet.ServletException - If errors found
IOException - If errors found

doPost

protected void doPost(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      IOException
Process an incoming POST request. In this case we simply redirect to GET

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
request - The incoming request
response - The response object
Throws:
javax.servlet.ServletException - If errors found
IOException - If errors found

destroy

public void destroy()
Shuts down any objects requiring such.

Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class javax.servlet.GenericServlet


Copyright © 2011. All Rights Reserved.