Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.coherence.servlet
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 Summary
`RequestContext(SessionHelper helper, javax.servlet.ServletRequest req, javax.servlet.ServletResponse res)` Construct a RequestContext object to hold the state of the request and response.

Method Summary
`int` | `decReferenceCount()` Decrement the reference count.
`protected java.lang.String` | `getDescription()` Returns a string representation of this object's attributes.
`int` | `getReferenceCount()` Get the current reference count.
`javax.servlet.ServletRequest` | `getServletRequest()` Get the wrapped ServletRequest.
`javax.servlet.ServletResponse` | `getServletResponse()` Get the wrapped ServletResponse.
`SessionHelper` | `getSessionHelper()` Get the SessionHelper.
`int` | `incReferenceCount()` Increment the reference count.
`java.lang.String` | `toString()` Returns a string representation of the object.
`protected javax.servlet.ServletRequest` | `unwrapServletRequest()` Return the fully unwrapped ServletRequest.

Constructor Detail

### 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 Detail

### 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 java.lang.String toString()

  Returns a string representation of the object.

  Returns:
    a string representation of the object

### getDescription

    protected java.lang.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

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2010, Oracle. All rights reserved.