Class ChainedResponse

java.lang.Object
jakarta.servlet.ServletResponseWrapper
jakarta.servlet.http.HttpServletResponseWrapper
com.ibm.websphere.servlet.response.StoredResponse
com.ibm.websphere.servlet.filter.ChainedResponse
All Implemented Interfaces:
StoredResponseCompat<CollectionEnumerationHybrid<String>>, IExtendedResponse, ServletResponseExtended, com.ibm.wsspi.webcontainer.util.IOutputStreamObserver, com.ibm.wsspi.webcontainer.util.IResponseOutput, Serializable, jakarta.servlet.http.HttpServletResponse, jakarta.servlet.ServletResponse

public class ChainedResponse extends StoredResponse
Deprecated.
Application developers requiring this functionality should implement this using jakarta.servlet.filter classes.
ChainedResponse is a response object that can be instantiated by any servlet and used/passed as a standard HttpResponse. The data that is written to this response can then be retrieved as a request to passed into another servlet in a chain. The ChainedRequest must be instantiated with the original request and response objects so that attributes and sessions associated with the chain can be propagated correctly (Deprecated since WebSphere 6.0).
See Also:
  • Constructor Details

    • ChainedResponse

      public ChainedResponse(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
      Deprecated.
      Create a chained response.
      Parameters:
      req - the original request.
      the - original response.
  • Method Details

    • getChainedRequest

      public jakarta.servlet.http.HttpServletRequest getChainedRequest() throws IOException, jakarta.servlet.ServletException
      Deprecated.
      Returns a chained request that contains the data that was written to this response.
      Throws:
      IOException
      jakarta.servlet.ServletException
    • encodeRedirectURL

      public String encodeRedirectURL(String url)
      Deprecated.
      Specified by:
      encodeRedirectURL in interface jakarta.servlet.http.HttpServletResponse
      Overrides:
      encodeRedirectURL in class StoredResponse
    • encodeRedirectUrl

      public String encodeRedirectUrl(String url)
      Deprecated.
      Specified by:
      encodeRedirectUrl in interface jakarta.servlet.http.HttpServletResponse
      Overrides:
      encodeRedirectUrl in class StoredResponse
    • encodeURL

      public String encodeURL(String url)
      Deprecated.
      Specified by:
      encodeURL in interface jakarta.servlet.http.HttpServletResponse
      Overrides:
      encodeURL in class StoredResponse
    • encodeUrl

      public String encodeUrl(String url)
      Deprecated.
      Specified by:
      encodeUrl in interface jakarta.servlet.http.HttpServletResponse
      Overrides:
      encodeUrl in class StoredResponse
    • setAutoTransferringHeader

      public void setAutoTransferringHeader(String name, String value)
      Deprecated.
      Set a header that should be automatically transferred to all requests in a chain. These headers will be backed up in a request attribute that will automatically read and transferred by all ChainedResponses. This method is useful for transparently transferring the original headers sent by the client without forcing servlets to be specially written to transfer these headers.
    • getProxiedHttpServletResponse

      public jakarta.servlet.http.HttpServletResponse getProxiedHttpServletResponse()
      Deprecated.