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 Details

    • getSSLId

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

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

      List getAllCookieValues(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(String id)
      Sets sessionId that is being generated for this request
    • getUpdatedSessionId

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

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

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

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

      void pushParameterStack()
    • aggregateQueryStringParams

      void aggregateQueryStringParams(String additionalQueryString, boolean setQS)
    • removeQSFromList

      void removeQSFromList()
    • getQueryString

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

      void setQueryString(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

      String getReaderEncoding()
    • getIRequest

      IRequest getIRequest()
    • attributeAdded

      void attributeAdded(String key, Object newVal)
    • attributeRemoved

      void attributeRemoved(String key, Object oldVal)
    • attributeReplaced

      void attributeReplaced(String key, Object oldVal)
    • addParameter

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

      void setMethod(String method)
    • setWebAppDispatcherContext

      void setWebAppDispatcherContext(IWebAppDispatcherContext ctx)
    • getWebAppDispatcherContext

      IWebAppDispatcherContext getWebAppDispatcherContext()
    • getResponse

      IExtendedResponse getResponse()
    • setResponse

      void setResponse(IExtendedResponse extResp)
    • initForNextRequest

      void initForNextRequest(IRequest req)
    • start

      void start()
    • finish

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

      void destroy()
    • getPathInfo

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

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

      void removeHeader(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

      HashMap getInputStreamData() throws IOException
      Throws:
      IOException
    • setInputStreamData

      void setInputStreamData(HashMap inStreamInfo) throws IOException
      Throws:
      IOException
    • serializeInputStreamData

      byte[][] serializeInputStreamData(Map isd) throws IOException, UnsupportedEncodingException, 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:
      IOException
      UnsupportedEncodingException
      IllegalStateException
    • deserializeInputStreamData

      HashMap deserializeInputStreamData(byte[][] input) throws UnsupportedEncodingException, IllegalStateException
      Throws:
      UnsupportedEncodingException
      IllegalStateException
    • sizeInputStreamData

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

      void setValuesIfMultiReadofPostdataEnabled()