|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
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 javax.servlet.http.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() |
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. |
Map |
getAttributeMap() Get the current map of request attributes. |
String |
getForwardedURI() |
String |
getListenScopeParameter(String attrName) |
String |
getLocalParameter(String attrName) |
List |
getNamesOfRemovableAttributes() Returns names of attributes that do not need to be saved in a session or restored later for a follow up refresh request. |
javax.servlet.http.HttpServletRequest |
getOuterRequest() |
String |
getScopedName(String baseName) |
Object |
getScopeKey() |
boolean |
hasListenScopes() |
void |
persistAttributes() Deprecated Moved the persisting of attributes out of the beehive NetUI layer. Use getAttributeMap() to get the attributes. |
void |
registerOuterAttribute(String attrName) |
void |
renameScope(Object newScopeKey) |
void |
restoreAttributes() Deprecated Moved the persisting of attributes out of the beehive NetUI layer. Use setAttributeMap(java.util.Map) to set/merge the attributes. |
void |
setActiveRequest() Makes this request listen to specially-prefixed request parameters. |
void |
setAttributeMap(Map map) Set/merge the map of request attributes from a map (saved in the Session). |
void |
setForwardedURI(String uri) Simply stores the URI that was being forwarded to. |
void |
setRequestURI(String uri) |
Methods inherited from interface javax.servlet.http.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 javax.servlet.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()
getAttributeMap()
to get the attributes.void restoreAttributes()
setAttributeMap(java.util.Map)
to set/merge the attributes.Map getAttributeMap()
void setAttributeMap(Map map)
List getNamesOfRemovableAttributes()
javax.servlet.http.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.void setForwardedURI(String uri)
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.