Package com.ibm.websphere.servlet.filter
Class ServletChain
- java.lang.Object
- 
- com.ibm.websphere.servlet.filter.ServletChain
 
- 
- All Implemented Interfaces:
- javax.servlet.RequestDispatcher
 
 public class ServletChain extends java.lang.Object implements javax.servlet.RequestDispatcherDeprecated.Application developers requiring this functionality should implement this using javax.servlet.filter classes.Object that chains the responses of servlets together. A servlet chain acts as a response pipe that allows servlets to filter the output of the previous servlet in the chain. When a servlet writes header or output stream data to the response, this data is fed into a chained request object that will be passed to the next servlet in the chain. The next servlet can examine the contents of the chained request to see the response that was generated by the previous servlet. The data written by the last servlet in the chain will be sent back to the client (Deprecated since WebSphere 6.0).
- 
- 
Field Summary- 
Fields inherited from interface javax.servlet.RequestDispatcherERROR_EXCEPTION, ERROR_EXCEPTION_TYPE, ERROR_MESSAGE, ERROR_REQUEST_URI, ERROR_SERVLET_NAME, ERROR_STATUS_CODE, FORWARD_CONTEXT_PATH, FORWARD_PATH_INFO, FORWARD_QUERY_STRING, FORWARD_REQUEST_URI, FORWARD_SERVLET_PATH, INCLUDE_CONTEXT_PATH, INCLUDE_PATH_INFO, INCLUDE_QUERY_STRING, INCLUDE_REQUEST_URI, INCLUDE_SERVLET_PATH
 
- 
 - 
Constructor SummaryConstructors Constructor Description ServletChain()Deprecated.ServletChain(javax.servlet.RequestDispatcher[] dispatchers)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddRequestDispatcher(int index, javax.servlet.RequestDispatcher rd)Deprecated.voidaddRequestDispatcher(javax.servlet.RequestDispatcher rd)Deprecated.static voidchainRequestDispatchers(javax.servlet.RequestDispatcher[] dispatchers, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Deprecated.Chain the responses of a set of request dispatchers together.voidclear()Deprecated.booleancontainsRequestDispatcher(javax.servlet.RequestDispatcher rd)Deprecated.java.util.Enumerationenumeration()Deprecated.voidforward(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp)Deprecated.javax.servlet.RequestDispatchergetRequestDispatcher(int index)Deprecated.voidinclude(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp)Deprecated.intindexOf(javax.servlet.RequestDispatcher rd)Deprecated.booleanisEmpty()Deprecated.javax.servlet.RequestDispatcherremoveRequestDispatcher(int index)Deprecated.booleanremoveRequestDispatcher(javax.servlet.RequestDispatcher rd)Deprecated.javax.servlet.RequestDispatchersetRequestDispatcher(int index, javax.servlet.RequestDispatcher rd)Deprecated.intsize()Deprecated.
 
- 
- 
- 
Method Detail- 
addRequestDispatcherpublic void addRequestDispatcher(javax.servlet.RequestDispatcher rd) Deprecated.
 - 
addRequestDispatcherpublic void addRequestDispatcher(int index, javax.servlet.RequestDispatcher rd)Deprecated.
 - 
clearpublic void clear() Deprecated.
 - 
containsRequestDispatcherpublic boolean containsRequestDispatcher(javax.servlet.RequestDispatcher rd) Deprecated.
 - 
enumerationpublic java.util.Enumeration enumeration() Deprecated.
 - 
getRequestDispatcherpublic javax.servlet.RequestDispatcher getRequestDispatcher(int index) Deprecated.
 - 
indexOfpublic int indexOf(javax.servlet.RequestDispatcher rd) Deprecated.
 - 
isEmptypublic boolean isEmpty() Deprecated.
 - 
removeRequestDispatcherpublic boolean removeRequestDispatcher(javax.servlet.RequestDispatcher rd) Deprecated.
 - 
removeRequestDispatcherpublic javax.servlet.RequestDispatcher removeRequestDispatcher(int index) Deprecated.
 - 
setRequestDispatcherpublic javax.servlet.RequestDispatcher setRequestDispatcher(int index, javax.servlet.RequestDispatcher rd)Deprecated.
 - 
sizepublic int size() Deprecated.
 - 
forwardpublic void forward(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp) throws javax.servlet.ServletException, java.io.IOExceptionDeprecated.- Specified by:
- forwardin interface- javax.servlet.RequestDispatcher
- Throws:
- javax.servlet.ServletException
- java.io.IOException
 
 - 
includepublic void include(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp) throws javax.servlet.ServletException, java.io.IOExceptionDeprecated.- Specified by:
- includein interface- javax.servlet.RequestDispatcher
- Throws:
- javax.servlet.ServletException
- java.io.IOException
 
 - 
chainRequestDispatcherspublic static void chainRequestDispatchers(javax.servlet.RequestDispatcher[] dispatchers, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletExceptionDeprecated.Chain the responses of a set of request dispatchers together.- Throws:
- java.io.IOException
- javax.servlet.ServletException
 
 
- 
 
-