org.enhydra.barracuda.core.helper.servlet
Class ParamGateway

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--org.enhydra.barracuda.core.helper.servlet.ParamGateway
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ParamGateway
extends javax.servlet.http.HttpServlet

The purpose of this servlet is take a set of req parameters and persist them in the users session. Then return the real target url back to the calling application

See Also:
Serialized Form

Field Summary
protected static org.apache.log4j.Logger logger
           
static java.lang.String PARAM_EXT
           
static java.lang.String PARAM_TARGET
           
 
Constructor Summary
ParamGateway()
           
 
Method Summary
protected  void doDelete(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          By default the DELETE request is mapped to the handleDefault method
protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          By default the GET request is mapped to the handleDefault method
protected  void doOptions(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          By default the OPTIONS request is mapped to the handleDefault method
protected  void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          By default the POST request is mapped to the handleDefault method
protected  void doPut(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          By default the PUT request is mapped to the handleDefault method
protected  void doTrace(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          By default the TRACE request is mapped to the handleDefault method
 void handleDefault(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          Handle the default HttpRequest.
 
Methods inherited from class javax.servlet.http.HttpServlet
doHead, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, 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 org.apache.log4j.Logger logger

PARAM_TARGET

public static java.lang.String PARAM_TARGET

PARAM_EXT

public static java.lang.String PARAM_EXT
Constructor Detail

ParamGateway

public ParamGateway()
Method Detail

handleDefault

public void handleDefault(javax.servlet.http.HttpServletRequest req,
                          javax.servlet.http.HttpServletResponse resp)
                   throws javax.servlet.ServletException,
                          java.io.IOException

Handle the default HttpRequest.

Parameters:
req - the servlet request
Throws:
javax.servlet.ServletException
java.io.IOException

doGet

protected void doGet(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse resp)
              throws javax.servlet.ServletException,
                     java.io.IOException

By default the GET request is mapped to the handleDefault method

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
req - the servlet request
Throws:
javax.servlet.ServletException
java.io.IOException

doPost

protected void doPost(javax.servlet.http.HttpServletRequest req,
                      javax.servlet.http.HttpServletResponse resp)
               throws javax.servlet.ServletException,
                      java.io.IOException

By default the POST request is mapped to the handleDefault method

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
req - the servlet request
Throws:
javax.servlet.ServletException
java.io.IOException

doOptions

protected void doOptions(javax.servlet.http.HttpServletRequest req,
                         javax.servlet.http.HttpServletResponse resp)
                  throws javax.servlet.ServletException,
                         java.io.IOException

By default the OPTIONS request is mapped to the handleDefault method

Overrides:
doOptions in class javax.servlet.http.HttpServlet
Parameters:
req - the servlet request
Throws:
javax.servlet.ServletException
java.io.IOException

doDelete

protected void doDelete(javax.servlet.http.HttpServletRequest req,
                        javax.servlet.http.HttpServletResponse resp)
                 throws javax.servlet.ServletException,
                        java.io.IOException

By default the DELETE request is mapped to the handleDefault method

Overrides:
doDelete in class javax.servlet.http.HttpServlet
Parameters:
req - the servlet request
Throws:
javax.servlet.ServletException
java.io.IOException

doPut

protected void doPut(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse resp)
              throws javax.servlet.ServletException,
                     java.io.IOException

By default the PUT request is mapped to the handleDefault method

Overrides:
doPut in class javax.servlet.http.HttpServlet
Parameters:
req - the servlet request
Throws:
javax.servlet.ServletException
java.io.IOException

doTrace

protected void doTrace(javax.servlet.http.HttpServletRequest req,
                       javax.servlet.http.HttpServletResponse resp)
                throws javax.servlet.ServletException,
                       java.io.IOException

By default the TRACE request is mapped to the handleDefault method

Overrides:
doTrace in class javax.servlet.http.HttpServlet
Parameters:
req - the servlet request
Throws:
javax.servlet.ServletException
java.io.IOException


Copyright © 2001 Enhydra.org