public final class RequestScopeStack extends Object
ServletRequest
object at any time, so thread safety is not an issue, but "delegated" to
ServletRequest
. :-)Modifier and Type | Field and Description |
---|---|
static RequestScopeStack |
instance |
Modifier and Type | Method and Description |
---|---|
static RequestScopeStack |
getInstance() |
Object |
peek(javax.servlet.ServletRequest request,
String attribute)
Returns the value at the top of the stack for the attribute called
attribute . |
void |
pop(javax.servlet.ServletRequest request,
String attribute)
Restores the request attribute with the name
attribute with the
value previously pushed under the same name. |
void |
push(javax.servlet.ServletRequest request,
String attribute,
Object value)
Stores value in the named attribute as a request scoped attribute,
any previously pushed value is stored for pop'ing at a later time.
|
public static final RequestScopeStack instance
public static RequestScopeStack getInstance()
public void push(javax.servlet.ServletRequest request, String attribute, Object value)
public void pop(javax.servlet.ServletRequest request, String attribute)
attribute
with the
value previously pushed under the same name. null
is returned
if the stack is empty for the given attribute.© 1998- 2021 Escenic AS