Class InterceptorStackConfig

java.lang.Object
org.apache.struts2.util.location.Located
org.apache.struts2.config.entities.InterceptorStackConfig
All Implemented Interfaces:
Serializable, Locatable

public class InterceptorStackConfig extends Located implements Serializable
Configuration for InterceptorStack.

In the xml configuration file this is defined as the interceptor-stack tag.

Author:
Mike, Rainer Hermanns
See Also:
  • Field Details

  • Constructor Details

    • InterceptorStackConfig

      protected InterceptorStackConfig()
      Creates an InterceptorStackConfig object.
    • InterceptorStackConfig

      protected InterceptorStackConfig(InterceptorStackConfig orig)
      Creates an InterceptorStackConfig object with a particular name.
      Parameters:
      orig - interceptor stack configuration
  • Method Details

    • getInterceptors

      public Collection<InterceptorMapping> getInterceptors()
      Returns a Collection of InterceptorMapping objects.
      Returns:
      collection of interceptor mappings
    • getName

      public String getName()
      Get the name of this interceptor stack configuration.
      Returns:
      String
    • equals

      public boolean equals(Object o)
      An InterceptorStackConfig object is equals with o only if
      • o is an InterceptorStackConfig object
      • both names are equals
      • all of their InterceptorMappings are equals
      Overrides:
      equals in class Object
      Parameters:
      o - the given object to check
      Returns:
      true if object match the rules
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Returns:
      generated hashcode based on InterceptorStackConfig's name and its InterceptorMappings.
    • toString

      public String toString()
      Overrides:
      toString in class Object