com.ibm.wsspi.webcontainer.servlet

Interface IExtendedRequest

  • All Superinterfaces:
    javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest
    All Known Implementing Classes:
    DummyRequest


    public interface IExtendedRequest
    extends javax.servlet.http.HttpServletRequest
    IExtendedRequest is an spi for websphere additions to the standard ServletRequest methods
    Since:
    WAS7.0
    • Method Detail

      • getSSLId

        byte[] getSSLId()
        Returns incoming SSL session id of the request. Applicable only for requests over ssl
      • getCookieValueAsBytes

        byte[] getCookieValueAsBytes(java.lang.String cookieName)
        Returns a cookie value as bytes
      • getAllCookieValues

        java.util.List getAllCookieValues(java.lang.String cookieName)
        Get the values for the cookie specified.
        Parameters:
        name - the cookie name
        Returns:
        List of values associated with this cookie name.
      • setSessionId

        void setSessionId(java.lang.String id)
        Sets sessionId that is being generated for this request
      • getUpdatedSessionId

        java.lang.String getUpdatedSessionId()
        returns sessionId that is being generated for this request
      • setSessionAffinityContext

        void setSessionAffinityContext(java.lang.Object sac)
        Sets SessionAffinityContext for this request
        Parameters:
        SessionAffinityContext - object
      • getSessionAffinityContext

        java.lang.Object getSessionAffinityContext()
        Get the SessionAffinityContext for this request
        Returns:
        SessionAffinityContext object
      • getEncodedRequestURI

        java.lang.String getEncodedRequestURI()
        returns url with encoded session information of the incoming request
      • pushParameterStack

        void pushParameterStack()
      • aggregateQueryStringParams

        void aggregateQueryStringParams(java.lang.String additionalQueryString,
                                        boolean setQS)
      • removeQSFromList

        void removeQSFromList()
      • getQueryString

        java.lang.String getQueryString()
        Specified by:
        getQueryString in interface javax.servlet.http.HttpServletRequest
        Returns:
      • setQueryString

        void setQueryString(java.lang.String qs)
      • setRunningCollaborators

        void setRunningCollaborators(boolean runningCollaborators)
        Sets boolean used to indicate to session manager if collaborators are running.
      • getRunningCollaborators

        boolean getRunningCollaborators()
        Returns boolean that indicates if collaborators are running. Used by session manager when session security integration is enabled.
      • getReaderEncoding

        java.lang.String getReaderEncoding()
      • attributeAdded

        void attributeAdded(java.lang.String key,
                            java.lang.Object newVal)
      • attributeRemoved

        void attributeRemoved(java.lang.String key,
                              java.lang.Object oldVal)
      • attributeReplaced

        void attributeReplaced(java.lang.String key,
                               java.lang.Object oldVal)
      • addParameter

        void addParameter(java.lang.String name,
                          java.lang.String[] values)
      • setMethod

        void setMethod(java.lang.String method)
      • initForNextRequest

        void initForNextRequest(IRequest req)
      • start

        void start()
      • finish

        void finish()
             throws javax.servlet.ServletException
        Throws:
        javax.servlet.ServletException
      • destroy

        void destroy()
      • getPathInfo

        java.lang.String getPathInfo()
        Specified by:
        getPathInfo in interface javax.servlet.http.HttpServletRequest
      • getRequestURI

        java.lang.String getRequestURI()
        Specified by:
        getRequestURI in interface javax.servlet.http.HttpServletRequest
      • removeHeader

        void removeHeader(java.lang.String header)
      • getAsyncContext

        javax.servlet.AsyncContext getAsyncContext()
        Specified by:
        getAsyncContext in interface javax.servlet.ServletRequest
      • closeResponseOutput

        void closeResponseOutput()
      • setAsyncSupported

        void setAsyncSupported(boolean asyncSupported)
      • finishAndDestroyConnectionContext

        void finishAndDestroyConnectionContext()
      • setDispatcherType

        void setDispatcherType(javax.servlet.DispatcherType dispatcherType)
      • setAsyncStarted

        void setAsyncStarted(boolean b)
      • getInputStreamData

        java.util.HashMap getInputStreamData()
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • setInputStreamData

        void setInputStreamData(java.util.HashMap inStreamInfo)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • serializeInputStreamData

        byte[][] serializeInputStreamData(java.util.Map isd)
                                   throws java.io.IOException,
                                          java.io.UnsupportedEncodingException,
                                          java.lang.IllegalStateException
        Serialize the Map object of InputStreamData. The format is as follows: byte[0][] : byte array of long value of INPUT_STREAM_CONTENT_DATA_LENGTH byte[1][] : the length of INPUT_STREAM_CONTENT_TYPE byte[2][] : the byte array of the value of INPUT_STREAM_CONTENT_TYPE if the length is zero, it only contains one byte data of which value is zero. byte[3...] : byte array of INPUT_STREAM_CONTENT_DATA (it could be multiple tWAS v9) byte[3] doesn't exist if the length is zero.
        Throws:
        java.io.IOException
        java.io.UnsupportedEncodingException
        java.lang.IllegalStateException
      • deserializeInputStreamData

        java.util.HashMap deserializeInputStreamData(byte[][] input)
                                              throws java.io.UnsupportedEncodingException,
                                                     java.lang.IllegalStateException
        Throws:
        java.io.UnsupportedEncodingException
        java.lang.IllegalStateException
      • sizeInputStreamData

        long sizeInputStreamData(java.util.Map isd)
                          throws java.io.UnsupportedEncodingException,
                                 java.lang.IllegalStateException
        returns estimated size of serialized InputStreamData this code does not consider that the length in long overwraps.
        Throws:
        java.io.UnsupportedEncodingException
        java.lang.IllegalStateException
      • setValuesIfMultiReadofPostdataEnabled

        void setValuesIfMultiReadofPostdataEnabled()