DLESE Tools
v1.6.0

org.dlese.dpc.util.uri
Class UriSpoofServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.dlese.dpc.util.uri.UriSpoofServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class UriSpoofServlet
extends HttpServlet

Utility servlet for mapping "static" URIs (.htm) to dynamic requests (.do?) using regular expressions

Author:
Ryan Deardorff
See Also:
Serialized Form

Constructor Summary
UriSpoofServlet()
           
 
Method Summary
 void doGet(HttpServletRequest request, HttpServletResponse response)
          Look at the requested URI and translate it to dynamic (but hidden to client) request
 void doPost(HttpServletRequest request, HttpServletResponse response)
          Hand control off to doGet (to easily support both at once)
 void init(ServletConfig config)
          Initialize the servlet
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, 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
 

Constructor Detail

UriSpoofServlet

public UriSpoofServlet()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Initialize the servlet

Specified by:
init in interface Servlet
Overrides:
init in class GenericServlet
Parameters:
config -
Throws:
ServletException

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws ServletException,
                  IOException
Look at the requested URI and translate it to dynamic (but hidden to client) request

Overrides:
doGet in class HttpServlet
Parameters:
request -
response -
Throws:
ServletException
IOException

doPost

public void doPost(HttpServletRequest request,
                   HttpServletResponse response)
            throws ServletException,
                   IOException
Hand control off to doGet (to easily support both at once)

Overrides:
doPost in class HttpServlet
Parameters:
request -
response -
Throws:
ServletException
IOException

DLESE Tools
v1.6.0