Class MessageRetrieveInterceptor

java.lang.Object
org.apache.struts2.interceptor.AbstractInterceptor
com.opensymphony.xwork2.interceptor.AbstractInterceptor
name.matthewgreet.strutscommons.interceptor.MessageRetrieveInterceptor
All Implemented Interfaces:
com.opensymphony.xwork2.interceptor.ConditionalInterceptor, com.opensymphony.xwork2.interceptor.Interceptor, Serializable, org.apache.struts2.interceptor.ConditionalInterceptor, org.apache.struts2.interceptor.Interceptor

public class MessageRetrieveInterceptor extends com.opensymphony.xwork2.interceptor.AbstractInterceptor

If the Struts action implements ValidationAware, removes errors and messages stored in the session by MessageStoreInterceptor and injects it into the action. It is usually part of the aflViewStack interceptor stack.

Interceptor parameters

disabled
If true, all processing is disabled. This is useful for standalone popup windows, especially self-refreshing ones, that never display messages. Defaults to false.

Extending the interceptor

This interceptor cannot be usefully extended.

Example code

 @InterceptorRefs({
   @InterceptorRef(value="messageRetrieve"),
   @InterceptorRef(value="basicStack")
})
 
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.opensymphony.xwork2.interceptor.ConditionalInterceptor

    com.opensymphony.xwork2.interceptor.ConditionalInterceptor.LegacyAdapter
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    intercept(com.opensymphony.xwork2.ActionInvocation invocation)
     
    void
    setDisabled(boolean value)
     

    Methods inherited from class com.opensymphony.xwork2.interceptor.AbstractInterceptor

    intercept, shouldIntercept, shouldIntercept

    Methods inherited from class org.apache.struts2.interceptor.AbstractInterceptor

    destroy, init, setDisabled

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.struts2.interceptor.Interceptor

    destroy, init
  • Constructor Details

    • MessageRetrieveInterceptor

      public MessageRetrieveInterceptor()
  • Method Details

    • getDisabled

      public boolean getDisabled()
    • setDisabled

      public void setDisabled(boolean value)
    • intercept

      public String intercept(com.opensymphony.xwork2.ActionInvocation invocation) throws Exception
      Specified by:
      intercept in interface com.opensymphony.xwork2.interceptor.Interceptor
      Specified by:
      intercept in class com.opensymphony.xwork2.interceptor.AbstractInterceptor
      Throws:
      Exception