Class MessageAmalgamationInterceptor
java.lang.Object
org.apache.struts2.interceptor.AbstractInterceptor
com.opensymphony.xwork2.interceptor.AbstractInterceptor
name.matthewgreet.strutscommons.interceptor.MessageAmalgamationInterceptor
- All Implemented Interfaces:
com.opensymphony.xwork2.interceptor.ConditionalInterceptor,com.opensymphony.xwork2.interceptor.Interceptor,com.opensymphony.xwork2.interceptor.PreResultListener,Serializable,org.apache.struts2.interceptor.ConditionalInterceptor,org.apache.struts2.interceptor.Interceptor,org.apache.struts2.interceptor.PreResultListener
public class MessageAmalgamationInterceptor
extends com.opensymphony.xwork2.interceptor.AbstractInterceptor
implements com.opensymphony.xwork2.interceptor.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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.opensymphony.xwork2.interceptor.ConditionalInterceptor
com.opensymphony.xwork2.interceptor.ConditionalInterceptor.LegacyAdapterNested classes/interfaces inherited from interface com.opensymphony.xwork2.interceptor.PreResultListener
com.opensymphony.xwork2.interceptor.PreResultListener.LegacyAdapter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeResult(com.opensymphony.xwork2.ActionInvocation invocation, String resultCode) booleanintercept(com.opensymphony.xwork2.ActionInvocation invocation) voidsetDisabled(boolean value) Methods inherited from class com.opensymphony.xwork2.interceptor.AbstractInterceptor
intercept, shouldIntercept, shouldInterceptMethods inherited from class org.apache.struts2.interceptor.AbstractInterceptor
destroy, init, setDisabledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.struts2.interceptor.Interceptor
destroy, initMethods inherited from interface com.opensymphony.xwork2.interceptor.PreResultListener
beforeResult
-
Constructor Details
-
MessageAmalgamationInterceptor
public MessageAmalgamationInterceptor()
-
-
Method Details
-
beforeResult
- Specified by:
beforeResultin interfacecom.opensymphony.xwork2.interceptor.PreResultListener
-
intercept
- Specified by:
interceptin interfacecom.opensymphony.xwork2.interceptor.Interceptor- Specified by:
interceptin classcom.opensymphony.xwork2.interceptor.AbstractInterceptor- Throws:
Exception
-
getDisabled
public boolean getDisabled() -
setDisabled
public void setDisabled(boolean value)
-