Package org.apache.struts2.util
Class InvocationSessionStore
java.lang.Object
org.apache.struts2.util.InvocationSessionStore
InvocationSessionStore
-
Method Summary
Modifier and TypeMethodDescriptionstatic ActionInvocation
loadInvocation
(String key, String token) Checks the Map in the Session for the key and the token.static void
storeInvocation
(String key, String token, ActionInvocation invocation) Stores the DefaultActionInvocation and ActionContext into the Session using the provided key for loading later usingloadInvocation(java.lang.String, java.lang.String)
-
Method Details
-
loadInvocation
Checks the Map in the Session for the key and the token. If the ActionInvocation is saved in the Session, the ValueStack from the ActionProxy associated with the ActionInvocation is set into the ActionContext and the ActionInvocation is returned.- Parameters:
key
- the name the DefaultActionInvocation and ActionContext were saved astoken
- token for check- Returns:
- the DefaultActionInvocation saved using the key, or null if none was found
-
storeInvocation
Stores the DefaultActionInvocation and ActionContext into the Session using the provided key for loading later usingloadInvocation(java.lang.String, java.lang.String)
- Parameters:
key
- the name the DefaultActionInvocation and ActionContext were saved astoken
- token for checkinvocation
- the action invocation
-