Package org.apache.struts2.interceptor
Class MessageStorePreResultListener
java.lang.Object
org.apache.struts2.interceptor.MessageStorePreResultListener
- All Implemented Interfaces:
PreResultListener
This listener is used by
MessageStoreInterceptor to store messages in HttpSession
just before result will be executed. It must be done that way as after result will be executed
HttpSession cannot be modified (response was already sent to browser).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeResult(ActionInvocation invocation, String resultCode) voidinit(MessageStoreInterceptor interceptor) protected booleanprotected booleanprotected booleanisRedirect(ActionInvocation invocation, String resultCode)
-
Field Details
-
interceptor
-
-
Constructor Details
-
MessageStorePreResultListener
public MessageStorePreResultListener()
-
-
Method Details
-
init
-
beforeResult
Description copied from interface:PreResultListener- Specified by:
beforeResultin interfacePreResultListener- Parameters:
invocation- the action invocationresultCode- the result code returned by the action (eg.success).
-
isCommitted
protected boolean isCommitted() -
isInvalidated
protected boolean isInvalidated() -
isRedirect
-