Class RequestContext

java.lang.Object
com.tangosol.util.Base
com.tangosol.coherence.servlet.RequestContext
Direct Known Subclasses:
HttpRequestContext

public class RequestContext extends Base
Request context information for a standard Servlet request.
Version:
Coherence 2.3
Author:
cp 2003.09.13
  • Constructor Details

    • RequestContext

      public RequestContext(SessionHelper helper, javax.servlet.ServletRequest req, javax.servlet.ServletResponse res)
      Construct a RequestContext object to hold the state of the request and response.
      Parameters:
      helper - the SessionHelper for this application
      req - the current ServletRequest object
      res - the current ServletResponse object
  • Method Details

    • getSessionHelper

      public SessionHelper getSessionHelper()
      Get the SessionHelper.
      Returns:
      the SessionHelper for this app
    • getServletRequest

      public javax.servlet.ServletRequest getServletRequest()
      Get the wrapped ServletRequest.
      Returns:
      the wrapped ServletRequest
    • getServletResponse

      public javax.servlet.ServletResponse getServletResponse()
      Get the wrapped ServletResponse.
      Returns:
      the wrapped ServletResponse
    • getReferenceCount

      public int getReferenceCount()
      Get the current reference count.
      Returns:
      the current reference count
    • incReferenceCount

      public int incReferenceCount()
      Increment the reference count.
      Returns:
      the new reference count
    • decReferenceCount

      public int decReferenceCount()
      Decrement the reference count.
      Returns:
      the new reference count
    • toString

      public String toString()
      Returns a string representation of the object.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the object
    • getDescription

      protected String getDescription()
      Returns a string representation of this object's attributes.
      Returns:
      a string representation of this object's attributes
    • unwrapServletRequest

      protected javax.servlet.ServletRequest unwrapServletRequest()
      Return the fully unwrapped ServletRequest.
      Returns:
      the fully unwrapped ServletRequest