com.ibm.websphere.servlet.filter
Class ChainerServlet
- java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.ibm.websphere.servlet.filter.ChainerServlet
All implemented interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Deprecated. Application developers requiring this functionality should implement this using javax.servlet.filter classes.
- public class ChainerServlet
- extends javax.servlet.http.HttpServlet
Example usage: Setup a servlet chain at the URI /servlet/upperCaseSnoop for /servlet/snoop-->/servlet/upperCaseFilter. The result of this chain should force the output of snoop to become capitalized.
- Step 1: Register an instance of ChainerServlet and map it to URI /servlet/upperCaseSnoop
- Step 2: Add an init parameter of 'chainer.pathlist=/servlet/snoop /servlet/upperCaseFilter'
- Step 3: Request the URL: http://host/servlet/upperCaseSnoop
Required init parameters
- chainer.pathlist: space separated list of servlet paths to chain together
See Also:
Field Summary
Modifier and Type | Field and Description |
---|---|
|
PARAM_SERVLET_PATHS
Deprecated. chainer.pathlist: the name of the parameter that specifies the chained servlet path list.
|
Constructor Summary
Constructor and Description |
---|
ChainerServlet()
Deprecated.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
destroy()
Deprecated.
|
|
init()
Deprecated. Initialize the servlet chainer.
|
|
service(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
Deprecated. Handle a servlet request by chaining the configured list of servlets.
|
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
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
PARAM_SERVLET_PATHS
- public static final java.lang.String PARAM_SERVLET_PATHS
Deprecated.
chainer.pathlist: the name of the parameter that specifies the chained servlet path list.
See Also:
Constructor Detail
ChainerServlet
- public ChainerServlet()
Deprecated.
Method Detail
init
- public void init()
- throws javax.servlet.ServletException
Deprecated.
Initialize the servlet chainer.
Overrides:
init
in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException
service
- public void service(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws javax.servlet.ServletException
- java.io.IOException
Deprecated.
Handle a servlet request by chaining the configured list of servlets.
Only the final response in the chain will be sent back to the client.
This servlet does not actual generate any content. This servlet only
constructs and processes the servlet chain.
Overrides:
service
in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException
destroy
- public void destroy()
Deprecated.
Specified by:
destroy
in interface javax.servlet.Servlet
Overrides:
destroy
in class javax.servlet.GenericServlet