Class MessageAmalgamationInterceptor
java.lang.Object
org.apache.struts2.interceptor.AbstractInterceptor
name.matthewgreet.strutscommons.interceptor.MessageAmalgamationInterceptor
- All Implemented Interfaces:
Serializable,ConditionalInterceptor,Interceptor,PreResultListener
public class MessageAmalgamationInterceptor
extends AbstractInterceptor
implements PreResultListener
If the action implements ValidationAware, amalgametes all action errors and messages from other validation aware actions in the Value Stack.
Interceptor parameters
None
Extending the interceptor
This can't be usefully extended.
Example code
@InterceptorRefs({
@InterceptorRef(value="messageAmalgamation"),
@InterceptorRef(value="defaultStack")
})
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeResult(ActionInvocation invocation, String resultCode) booleanintercept(ActionInvocation invocation) voidsetDisabled(boolean value) Methods inherited from class org.apache.struts2.interceptor.AbstractInterceptor
destroy, init, setDisabled, shouldIntercept
-
Constructor Details
-
MessageAmalgamationInterceptor
public MessageAmalgamationInterceptor()
-
-
Method Details
-
beforeResult
- Specified by:
beforeResultin interfacePreResultListener
-
intercept
- Specified by:
interceptin interfaceInterceptor- Specified by:
interceptin classAbstractInterceptor- Throws:
Exception
-
getDisabled
public boolean getDisabled() -
setDisabled
public void setDisabled(boolean value)
-