Package com.netscape.cms.servlet.base
Class ProxyServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.netscape.cms.servlet.base.ProxyServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
- Direct Known Subclasses:
BulkIssuanceProxyServlet
,DoRevokeProxyServlet
,ProfileSubmitProxyServlet
public class ProxyServlet
extends jakarta.servlet.http.HttpServlet
This is a servlet that proxies request to another servlet.
SERVLET REDIRECTION
Specify the URL of a servlet to forward the request to
destServlet: /ee/ca/newservlet
PARAMETER MAPPING
In the servlet configuration (as an init-param in web.xml) you
can optionally specify a value for the parameter 'parameterMap'
which contains a list of HTTP parameters which should be
translated to new names.
parameterMap:
Optionally, names can be set to static values:
parameterMap:
Examples:
Consider the following HTTP input parameters:
vehicle:car make:ford model:explorer
The following config strings will have this effect:
parameterMap:
output: vehicle:car manufactuer:ford model:expedition suv:true
- Version:
- $Revision$, $Date$
- See Also:
-
Field Summary
FieldsFields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
logger
public static org.slf4j.Logger logger
-
-
Constructor Details
-
ProxyServlet
public ProxyServlet()
-
-
Method Details
-
init
public void init(jakarta.servlet.ServletConfig sc) throws jakarta.servlet.ServletException - Specified by:
init
in interfacejakarta.servlet.Servlet
- Overrides:
init
in classjakarta.servlet.http.HttpServlet
- Throws:
jakarta.servlet.ServletException
-
service
public void service(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws IOException, jakarta.servlet.ServletException - Overrides:
service
in classjakarta.servlet.http.HttpServlet
- Throws:
IOException
jakarta.servlet.ServletException
-