public class MessageStorePreResultListener extends Object implements PreResultListener
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).Modifier and Type | Field and Description |
---|---|
protected MessageStoreInterceptor |
interceptor |
Constructor and Description |
---|
MessageStorePreResultListener() |
Modifier and Type | Method and Description |
---|---|
void |
beforeResult(ActionInvocation invocation,
String resultCode)
|
void |
init(MessageStoreInterceptor interceptor) |
protected boolean |
isCommitted() |
protected boolean |
isInvalidated() |
protected boolean |
isRedirect(ActionInvocation invocation,
String resultCode) |
protected MessageStoreInterceptor interceptor
public void init(MessageStoreInterceptor interceptor)
public void beforeResult(ActionInvocation invocation, String resultCode)
PreResultListener
beforeResult
in interface PreResultListener
invocation
- the action invocationresultCode
- the result code returned by the action (eg. success
).protected boolean isCommitted()
protected boolean isInvalidated()
protected boolean isRedirect(ActionInvocation invocation, String resultCode)
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.