|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScopedRequest
A wrapper around HttpServletRequest, associated with a given scope-key. All calls to setAttribute, getAttribute, removeAttribute, etc. are scoped to this object, while most other functionality delegates to the wrapped HttpServletRequest. Instances of this class also keep track of their own request-URIs, which are independent of the wrapped request-URIs.
Field Summary | |
---|---|
static String |
AUTOSCOPE_PREFIX
|
Fields inherited from interface HttpServletRequest |
---|
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
Method Summary | |
---|---|
void |
addListenScope(Object scopeKey)
Adds a scope to "listen" to. |
boolean |
didRedirect()
Deprecated. Use ScopedResponse.didRedirect() instead. |
void |
doForward()
|
Map |
filterParameterMap(Map parameterMap)
|
Object |
getAttribute(String attrName,
boolean allowOuterRequestAttributes)
Same as getAttribute , but allows outer request attributes to be hidden explicitly, even if the implementation
of getAttribute shows them by default. |
String |
getForwardedURI()
|
String |
getListenScopeParameter(String attrName)
|
String |
getLocalParameter(String attrName)
|
HttpServletRequest |
getOuterRequest()
|
String |
getScopedName(String baseName)
|
Object |
getScopeKey()
|
boolean |
hasListenScopes()
|
void |
persistAttributes()
Stores the current map of request attributes in the Session. |
void |
registerOuterAttribute(String attrName)
|
void |
renameScope(Object newScopeKey)
|
void |
restoreAttributes()
Restores the map of request attributes from a map saved in the Session. |
void |
setActiveRequest()
Makes this request listen to specially-prefixed request parameters. |
void |
setForwardedURI(String uri)
Simply stores the URI that was being forwarded to. |
void |
setRequestURI(String uri)
|
Methods inherited from interface HttpServletRequest |
---|
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole |
Methods inherited from interface ServletRequest |
---|
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding |
Field Detail |
---|
static final String AUTOSCOPE_PREFIX
Method Detail |
---|
void setRequestURI(String uri)
void addListenScope(Object scopeKey)
void doForward()
String getForwardedURI()
boolean didRedirect()
ScopedResponse.didRedirect()
instead.
void persistAttributes()
void restoreAttributes()
HttpServletRequest getOuterRequest()
Object getScopeKey()
void renameScope(Object newScopeKey)
void setActiveRequest()
String getScopedName(String baseName)
void registerOuterAttribute(String attrName)
String getLocalParameter(String attrName)
String getListenScopeParameter(String attrName)
boolean hasListenScopes()
Object getAttribute(String attrName, boolean allowOuterRequestAttributes)
getAttribute
, but allows outer request attributes to be hidden explicitly, even if the implementation
of getAttribute shows them by default.
Map filterParameterMap(Map parameterMap)
void setForwardedURI(String uri)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |