com.ibm.websphere.servlet.filter

Class ServletChain

  • java.lang.Object
    • com.ibm.websphere.servlet.filter.ServletChain
  • All Implemented Interfaces:
    javax.servlet.RequestDispatcher

    Deprecated. 
    Application developers requiring this functionality should implement this using javax.servlet.filter classes.

    public class ServletChain
    extends java.lang.Object
    implements javax.servlet.RequestDispatcher
    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.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

      Constructors 
      Constructor and Description
      ServletChain()
      Deprecated. 
       
      ServletChain(javax.servlet.RequestDispatcher[] dispatchers)
      Deprecated. 
       
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void addRequestDispatcher(int index, javax.servlet.RequestDispatcher rd)
      Deprecated. 
       
      void addRequestDispatcher(javax.servlet.RequestDispatcher rd)
      Deprecated. 
       
      static void chainRequestDispatchers(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.
      void clear()
      Deprecated. 
       
      boolean containsRequestDispatcher(javax.servlet.RequestDispatcher rd)
      Deprecated. 
       
      java.util.Enumeration enumeration()
      Deprecated. 
       
      void forward(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp)
      Deprecated. 
       
      javax.servlet.RequestDispatcher getRequestDispatcher(int index)
      Deprecated. 
       
      void include(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp)
      Deprecated. 
       
      int indexOf(javax.servlet.RequestDispatcher rd)
      Deprecated. 
       
      boolean isEmpty()
      Deprecated. 
       
      javax.servlet.RequestDispatcher removeRequestDispatcher(int index)
      Deprecated. 
       
      boolean removeRequestDispatcher(javax.servlet.RequestDispatcher rd)
      Deprecated. 
       
      javax.servlet.RequestDispatcher setRequestDispatcher(int index, javax.servlet.RequestDispatcher rd)
      Deprecated. 
       
      int size()
      Deprecated. 
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ServletChain

        public ServletChain()
        Deprecated. 
      • ServletChain

        public ServletChain(javax.servlet.RequestDispatcher[] dispatchers)
        Deprecated. 
    • Method Detail

      • addRequestDispatcher

        public void addRequestDispatcher(javax.servlet.RequestDispatcher rd)
        Deprecated. 
      • addRequestDispatcher

        public void addRequestDispatcher(int index,
                                javax.servlet.RequestDispatcher rd)
        Deprecated. 
      • clear

        public void clear()
        Deprecated. 
      • containsRequestDispatcher

        public boolean containsRequestDispatcher(javax.servlet.RequestDispatcher rd)
        Deprecated. 
      • enumeration

        public java.util.Enumeration enumeration()
        Deprecated. 
      • getRequestDispatcher

        public javax.servlet.RequestDispatcher getRequestDispatcher(int index)
        Deprecated. 
      • indexOf

        public int indexOf(javax.servlet.RequestDispatcher rd)
        Deprecated. 
      • isEmpty

        public boolean isEmpty()
        Deprecated. 
      • removeRequestDispatcher

        public boolean removeRequestDispatcher(javax.servlet.RequestDispatcher rd)
        Deprecated. 
      • removeRequestDispatcher

        public javax.servlet.RequestDispatcher removeRequestDispatcher(int index)
        Deprecated. 
      • setRequestDispatcher

        public javax.servlet.RequestDispatcher setRequestDispatcher(int index,
                                                           javax.servlet.RequestDispatcher rd)
        Deprecated. 
      • size

        public int size()
        Deprecated. 
      • forward

        public void forward(javax.servlet.ServletRequest req,
                   javax.servlet.ServletResponse resp)
                     throws javax.servlet.ServletException,
                            java.io.IOException
        Deprecated. 
        Specified by:
        forward in interface javax.servlet.RequestDispatcher
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • include

        public void include(javax.servlet.ServletRequest req,
                   javax.servlet.ServletResponse resp)
                     throws javax.servlet.ServletException,
                            java.io.IOException
        Deprecated. 
        Specified by:
        include in interface javax.servlet.RequestDispatcher
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • chainRequestDispatchers

        public static void chainRequestDispatchers(javax.servlet.RequestDispatcher[] dispatchers,
                                   javax.servlet.http.HttpServletRequest request,
                                   javax.servlet.http.HttpServletResponse response)
                                            throws java.io.IOException,
                                                   javax.servlet.ServletException
        Deprecated. 
        Chain the responses of a set of request dispatchers together.
        Throws:
        java.io.IOException
        javax.servlet.ServletException
IBM WebSphere Application ServerTM
Release 9.0