Package 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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.tangosol.util.Base
Base.LoggingWriter
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
decReferenceCount()
Decrement the reference count.protected 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.String
toString()
Returns a string representation of the object.protected javax.servlet.ServletRequest
unwrapServletRequest()
Return the fully unwrapped ServletRequest.-
Methods inherited from class com.tangosol.util.Base
azzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getProcessRandom, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mergeArray, mergeBooleanArray, mergeByteArray, mergeCharArray, mergeDoubleArray, mergeFloatArray, mergeIntArray, mergeLongArray, mod, mod, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, wait
-
-
-
-
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 applicationreq
- the current ServletRequest objectres
- 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 String toString()
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
-
-