Class ServletChain

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

public class ServletChain extends Object implements 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

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

    Modifier and Type
    Method
    Description
    void
    addRequestDispatcher(int index, jakarta.servlet.RequestDispatcher rd)
    Deprecated.
     
    void
    addRequestDispatcher(jakarta.servlet.RequestDispatcher rd)
    Deprecated.
     
    static void
    chainRequestDispatchers(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.
    void
    Deprecated.
     
    boolean
    containsRequestDispatcher(jakarta.servlet.RequestDispatcher rd)
    Deprecated.
     
    Deprecated.
     
    void
    forward(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse resp)
    Deprecated.
     
    jakarta.servlet.RequestDispatcher
    Deprecated.
     
    void
    include(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse resp)
    Deprecated.
     
    int
    indexOf(jakarta.servlet.RequestDispatcher rd)
    Deprecated.
     
    boolean
    Deprecated.
     
    jakarta.servlet.RequestDispatcher
    Deprecated.
     
    boolean
    removeRequestDispatcher(jakarta.servlet.RequestDispatcher rd)
    Deprecated.
     
    jakarta.servlet.RequestDispatcher
    setRequestDispatcher(int index, jakarta.servlet.RequestDispatcher rd)
    Deprecated.
     
    int
    Deprecated.
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public Enumeration 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:
      forward in interface jakarta.servlet.RequestDispatcher
      Throws:
      jakarta.servlet.ServletException
      IOException
    • include

      public void include(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse resp) throws jakarta.servlet.ServletException, IOException
      Deprecated.
      Specified by:
      include in interface jakarta.servlet.RequestDispatcher
      Throws:
      jakarta.servlet.ServletException
      IOException
    • 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:
      IOException
      jakarta.servlet.ServletException