|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vraptor.scope.FlashContext
public class FlashContext
A flash context lives through the current and following request only. It is then copied to the request scope and replaced with a new empty implementation.
| Constructor Summary | |
|---|---|
FlashContext(javax.servlet.http.HttpServletRequest request)
|
|
| Method Summary | |
|---|---|
void |
dumpToRequest()
|
Object |
getAttribute(String name)
Retrieves an attribute |
boolean |
hasAttribute(String name)
Whether it contains an attribute |
Object |
removeAttribute(String name)
Removes an attribute |
void |
renew()
|
void |
setAttribute(String name,
Object value)
Sets an attribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlashContext(javax.servlet.http.HttpServletRequest request)
| Method Detail |
|---|
public Object getAttribute(String name)
Context
getAttribute in interface Contextname - name
public boolean hasAttribute(String name)
Context
hasAttribute in interface Contextname - name
public Object removeAttribute(String name)
Context
removeAttribute in interface Contextname - name
public void setAttribute(String name,
Object value)
Context
setAttribute in interface Contextname - namevalue - valuepublic void dumpToRequest()
public void renew()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||