com.ibm.websphere.servlet.filter

Class ChainedResponse

  • All Implemented Interfaces:
    StoredResponseCompat, com.ibm.wsspi.webcontainer.servlet.IExtendedResponse, com.ibm.wsspi.webcontainer.util.IOutputStreamObserver, com.ibm.wsspi.webcontainer.util.IResponseOutput, java.io.Serializable, javax.servlet.http.HttpServletResponse, javax.servlet.ServletResponse

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

    public class ChainedResponse
    extends StoredResponse
    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:
    Serialized Form
    • Constructor Detail

      • ChainedResponse

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

      • getChainedRequest

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

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

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

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

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

        public void setAutoTransferringHeader(java.lang.String name,
                                     java.lang.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 javax.servlet.http.HttpServletResponse getProxiedHttpServletResponse()
        Deprecated. 
IBM WebSphere Application ServerTM
Release 8.5