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 TypeMethodDescriptionvoid
beforeResult
(ActionInvocation invocation, String resultCode) void
init
(MessageStoreInterceptor interceptor) protected boolean
protected boolean
protected boolean
isRedirect
(ActionInvocation invocation, String resultCode)
-
Field Details
-
interceptor
-
-
Constructor Details
-
MessageStorePreResultListener
public MessageStorePreResultListener()
-
-
Method Details
-
init
-
beforeResult
Description copied from interface:PreResultListener
- Specified by:
beforeResult
in interfacePreResultListener
- Parameters:
invocation
- the action invocationresultCode
- the result code returned by the action (eg.success
).
-
isCommitted
protected boolean isCommitted() -
isInvalidated
protected boolean isInvalidated() -
isRedirect
-