Package com.ibm.websphere.servlet.filter
Class ServletChain
java.lang.Object
com.ibm.websphere.servlet.filter.ServletChain
- All Implemented Interfaces:
jakarta.servlet.RequestDispatcher
Deprecated.
Application developers requiring this functionality
should implement this using jakarta.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 jakarta.servlet.RequestDispatcher
ERROR_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 Summary
ConstructorsConstructorDescriptionDeprecated.ServletChain(jakarta.servlet.RequestDispatcher[] dispatchers) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRequestDispatcher(int index, jakarta.servlet.RequestDispatcher rd) Deprecated.voidaddRequestDispatcher(jakarta.servlet.RequestDispatcher rd) Deprecated.static voidchainRequestDispatchers(jakarta.servlet.RequestDispatcher[] dispatchers, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Deprecated.Chain the responses of a set of request dispatchers together.voidclear()Deprecated.booleancontainsRequestDispatcher(jakarta.servlet.RequestDispatcher rd) Deprecated.Deprecated.voidforward(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse resp) Deprecated.jakarta.servlet.RequestDispatchergetRequestDispatcher(int index) Deprecated.voidinclude(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse resp) Deprecated.intindexOf(jakarta.servlet.RequestDispatcher rd) Deprecated.booleanisEmpty()Deprecated.jakarta.servlet.RequestDispatcherremoveRequestDispatcher(int index) Deprecated.booleanremoveRequestDispatcher(jakarta.servlet.RequestDispatcher rd) Deprecated.jakarta.servlet.RequestDispatchersetRequestDispatcher(int index, jakarta.servlet.RequestDispatcher rd) Deprecated.intsize()Deprecated.
-
Constructor Details
-
ServletChain
public ServletChain()Deprecated. -
ServletChain
public ServletChain(jakarta.servlet.RequestDispatcher[] dispatchers) Deprecated.
-
-
Method Details
-
addRequestDispatcher
public void addRequestDispatcher(jakarta.servlet.RequestDispatcher rd) Deprecated. -
addRequestDispatcher
public void addRequestDispatcher(int index, jakarta.servlet.RequestDispatcher rd) Deprecated. -
clear
public void clear()Deprecated. -
containsRequestDispatcher
public boolean containsRequestDispatcher(jakarta.servlet.RequestDispatcher rd) Deprecated. -
enumeration
Deprecated. -
getRequestDispatcher
public jakarta.servlet.RequestDispatcher getRequestDispatcher(int index) Deprecated. -
indexOf
public int indexOf(jakarta.servlet.RequestDispatcher rd) Deprecated. -
isEmpty
public boolean isEmpty()Deprecated. -
removeRequestDispatcher
public boolean removeRequestDispatcher(jakarta.servlet.RequestDispatcher rd) Deprecated. -
removeRequestDispatcher
public jakarta.servlet.RequestDispatcher removeRequestDispatcher(int index) Deprecated. -
setRequestDispatcher
public jakarta.servlet.RequestDispatcher setRequestDispatcher(int index, jakarta.servlet.RequestDispatcher rd) Deprecated. -
size
public int size()Deprecated. -
forward
public void forward(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse resp) throws jakarta.servlet.ServletException, IOException Deprecated.- Specified by:
forwardin interfacejakarta.servlet.RequestDispatcher- Throws:
jakarta.servlet.ServletExceptionIOException
-
include
public void include(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse resp) throws jakarta.servlet.ServletException, IOException Deprecated.- Specified by:
includein interfacejakarta.servlet.RequestDispatcher- Throws:
jakarta.servlet.ServletExceptionIOException
-
chainRequestDispatchers
public static void chainRequestDispatchers(jakarta.servlet.RequestDispatcher[] dispatchers, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException Deprecated.Chain the responses of a set of request dispatchers together.- Throws:
IOExceptionjakarta.servlet.ServletException
-