org.apache.geronimo.console.servlet
Class ContextForwardServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ContextForwardServlet
public ContextForwardServlet()
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.