com.googlecode.solrgeonames.server
Class GeoServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
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
|
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 |
DEFAULT_START
public static String DEFAULT_START
DEFAULT_ROWS
public static String DEFAULT_ROWS
GeoServlet
public GeoServlet()
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 requestresponse - 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 requestresponse - 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.