|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.tangosol.util.Base com.tangosol.coherence.servlet.RequestContext
public class RequestContext
Request context information for a standard Servlet request.
Field Summary | |
---|---|
protected static String |
KEY_REQUEST
The key used to store the original Servlet request in the map returned by saveRequestState . |
protected static String |
KEY_RESPONSE
The key used to store the original Servlet response in the map returned by saveRequestState . |
protected static String |
REQ_ATTR_CONTEXT
|
protected static String |
REQ_ATTR_DISPATCH
|
protected static String |
REQ_ATTR_OK_WRAP
|
protected static String |
REQ_ATTR_REQUEST
|
protected static String |
REQ_ATTR_WRAPPED
|
Constructor Summary | |
---|---|
RequestContext(SessionHelper helper,
RequestContext ctxOuter,
ServletRequest req)
Construct a RequestContext object to hold the state of the request and response and the wrappers for each. |
Method Summary | |
---|---|
int |
decReferenceCount()
Decrement the reference count. |
protected String |
getDescription()
Returns a string representation of this object's attributes. |
RequestContext |
getOuterRequestContext()
Determine the RequestContext object that this RequestContext exists "within", if this request context was created by a nested request, such as by including or forwarding. |
int |
getReferenceCount()
Get the current reference count. |
ServletRequest |
getServletRequest()
Get the wrapped ServletRequest. |
ServletRequest |
getServletRequestWrapper()
Get the ServletRequest wrapper. |
ServletResponse |
getServletResponse()
Get the wrapped ServletResponse. |
ServletResponse |
getServletResponseWrapper()
Get the ServletResponse wrapper. |
SessionHelper |
getSessionHelper()
Get the SessionHelper. |
int |
incReferenceCount()
Increment the reference count. |
boolean |
isNested()
Determines if this RequestContext exists "within" an outer RequestContext. |
void |
restoreRequestState(Map mapState,
boolean fExternal)
Restores the underlying Servlet request back to the state it was in prior to calling saveRequestState . |
Map |
saveRequestState(boolean fExternal)
Returns a map containing the state of the underlying Servlet request. |
void |
setServletRequestWrapper(ServletRequest req)
Set the ServletRequest wrapper once it is known. |
void |
setServletResponse(ServletResponse res)
Set the wrapped ServletResponse. |
void |
setServletResponseWrapper(ServletResponse res)
Set the ServletResponse wrapper once it is known. |
String |
toString()
Returns a string representation of the object. |
Field Detail |
---|
protected static final String KEY_REQUEST
saveRequestState
.
protected static final String KEY_RESPONSE
saveRequestState
.
protected static final String REQ_ATTR_OK_WRAP
protected static final String REQ_ATTR_CONTEXT
protected static final String REQ_ATTR_DISPATCH
protected static final String REQ_ATTR_REQUEST
protected static final String REQ_ATTR_WRAPPED
Constructor Detail |
---|
public RequestContext(SessionHelper helper, RequestContext ctxOuter, ServletRequest req)
helper
- the SessionHelper for this applicationctxOuter
- the outer RequestContext object, or null if nonereq
- the application server's ServletRequest objectMethod Detail |
---|
public SessionHelper getSessionHelper()
public RequestContext getOuterRequestContext()
public boolean isNested()
public ServletRequest getServletRequest()
public ServletResponse getServletResponse()
public void setServletResponse(ServletResponse res)
res
- the wrapped ServletResponsepublic ServletRequest getServletRequestWrapper()
public void setServletRequestWrapper(ServletRequest req)
req
- the ServletRequest wrapperpublic ServletResponse getServletResponseWrapper()
public void setServletResponseWrapper(ServletResponse res)
res
- the ServletResponse wrapperpublic int getReferenceCount()
public int incReferenceCount()
public int decReferenceCount()
public Map saveRequestState(boolean fExternal)
restoreRequestState
with the
map returned from this method.
A true value of the fExternal parameter indicates that the nested
request will target an external web application, that is, a web
application with a different ServletContext.
fExternal
- true if the nested request will target an external web
application
public void restoreRequestState(Map mapState, boolean fExternal)
saveRequestState
.
mapState
- the Map returned from a call to
saveRequestState
fExternal
- true if the nested request had targeted an external web
applicationpublic String toString()
protected String getDescription()
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |