org.apache.geronimo.console.servlet
Class ContextForwardServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.geronimo.console.servlet.ContextForwardServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class ContextForwardServlet
extends HttpServlet

Servlet that forwards GET and POST requests to a servlet in an alternate context. The servlet path and alternate context are passed in as configuration parameters (e.g. via elements in the web.xml).

See Also:
Serialized Form

Field Summary
static String CONTEXT_PATH
           
static String SERVLET_PATH
           
 
Constructor Summary
ContextForwardServlet()
           
 
Method Summary
 void doGet(HttpServletRequest req, HttpServletResponse resp)
           
 void doPost(HttpServletRequest req, HttpServletResponse resp)
           
 void init(ServletConfig config)
           
 
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
 

Field Detail

CONTEXT_PATH

public static final String CONTEXT_PATH
See Also:
Constant Field Values

SERVLET_PATH

public static final String SERVLET_PATH
See Also:
Constant Field Values
Constructor Detail

ContextForwardServlet

public ContextForwardServlet()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Specified by:
init in interface Servlet
Overrides:
init in class GenericServlet
Throws:
ServletException

doGet

public void doGet(HttpServletRequest req,
                  HttpServletResponse resp)
           throws ServletException,
                  IOException
Overrides:
doGet in class HttpServlet
Throws:
ServletException
IOException

doPost

public void doPost(HttpServletRequest req,
                   HttpServletResponse resp)
            throws ServletException,
                   IOException
Overrides:
doPost in class HttpServlet
Throws:
ServletException
IOException


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.