# com.bea.wlw.netui.pageflow.scoping
ScopedRequest Interface

public interface ScopedRequest
extends `HttpServletRequest`

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.

All Superinterfaces
  `HttpServletRequest`, `ServletRequest`

## Field Summary

`public static final `String`` | `AUTOSCOPE_PREFIX` String

Fields from interface javax.servlet.http`.`HttpServletRequest``
`BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH`

## Method Summary

`public void` | `addListenScope`(`Object` scopeKey) Adds a scope to "listen" to.
`public boolean` | `didRedirect`()
`public void` | `doForward`()
`public `String`` | `getForwardedURI`()
`public `String`` | `getListenScopeParameter`(`String` attrName)
`public `String`` | `getLocalParameter`(`String` attrName)
`public `HttpServletRequest`` | `getOuterRequest`()
`public `String`` | `getScopedName`(`String` baseName)
`public `Object`` | `getScopeKey`()
`public boolean` | `hasListenScopes`()
`public void` | `persistAttributes`() Stores the current map of request attributes in the Session.
`public void` | `registerNonPersistedAttribute`(`String` attrName)
`public void` | `registerOuterAttribute`(`String` attrName)
`public void` | `renameScope`(`Object` newScopeKey)
`public void` | `restoreAttributes`() Restores the map of request attributes from a map saved in the Session.
`public void` | `setActiveRequest`() Makes this request listen to specially-prefixed request parameters.
`public void` | `setRequestURI`(`String` uri)

Methods 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 from interface `javax.servlet.`ServletRequest``
`getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding`

## Field Detail

### AUTOSCOPE_PREFIX

    public static final String AUTOSCOPE_PREFIX

## Method Detail

### addListenScope(Object) Method

    public void addListenScope(Object scopeKey)

Adds a scope to "listen" to. This scope will see all request parameters from a ScopedRequest of the given scope.

### didRedirect() Method

DEPRECATED Use `com.bea.wlw.netui.pageflow.scoping.ScopedResponse.didRedirect()``` instead.

    public boolean didRedirect()

### doForward() Method

    public void doForward()

### getForwardedURI() Method

    public String getForwardedURI()

### getListenScopeParameter(String) Method

    public String getListenScopeParameter(String attrName)

### getLocalParameter(String) Method

    public String getLocalParameter(String attrName)

### getOuterRequest() Method

    public HttpServletRequest getOuterRequest()

### getScopedName(String) Method

    public String getScopedName(String baseName)

### getScopeKey() Method

    public Object getScopeKey()

### hasListenScopes() Method

    public boolean hasListenScopes()

### persistAttributes() Method

    public void persistAttributes()

Stores the current map of request attributes in the Session.

### registerNonPersistedAttribute(String) Method

    public void registerNonPersistedAttribute(String attrName)

### registerOuterAttribute(String) Method

    public void registerOuterAttribute(String attrName)

### renameScope(Object) Method

    public void renameScope(Object newScopeKey)

### restoreAttributes() Method

    public void restoreAttributes()

Restores the map of request attributes from a map saved in the Session.

### setActiveRequest() Method

    public void setActiveRequest()

Makes this request listen to specially-prefixed request parameters.

### setRequestURI(String) Method

    public void setRequestURI(String uri)