Package com.tangosol.coherence.servlet
Class RequestContext
java.lang.Object
com.tangosol.util.Base
com.tangosol.coherence.servlet.RequestContext
- Direct Known Subclasses:
HttpRequestContext
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 -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionRequestContext(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
Modifier and TypeMethodDescriptionintDecrement the reference count.protected StringReturns a string representation of this object's attributes.intGet the current reference count.javax.servlet.ServletRequestGet the wrapped ServletRequest.javax.servlet.ServletResponseGet the wrapped ServletResponse.Get the SessionHelper.intIncrement the reference count.toString()Returns a string representation of the object.protected javax.servlet.ServletRequestReturn 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, newHashMap, newHashMap, newHashSet, newHashSet, 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 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 applicationreq- the current ServletRequest objectres- the current ServletResponse object
-
-
Method Details
-
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
Returns a string representation of the object. -
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
-