com.opensymphony.xwork.config.entities
Class InterceptorStackConfig

java.lang.Object
  extended by com.opensymphony.xwork.util.location.Located
      extended by com.opensymphony.xwork.config.entities.InterceptorStackConfig
All Implemented Interfaces:
InterceptorListHolder, Locatable, Serializable

public class InterceptorStackConfig
extends Located
implements InterceptorListHolder, Serializable

Configuration for InterceptorStack.

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

Version:
$Date: 2007-05-20 12:57:53 -0500 (Sun, 20 May 2007) $ $Id: InterceptorStackConfig.java 1515 2007-05-20 17:57:53Z tm_jee $
Author:
Mike, Rainer Hermanns, tmjee
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.opensymphony.xwork.util.location.Located
location
 
Constructor Summary
InterceptorStackConfig()
          Creates an InterceptorStackConfig object.
InterceptorStackConfig(String name)
          Creates an InterceptorStackConfig object with a particular name.
 
Method Summary
 void addInterceptor(InterceptorMapping interceptor)
          Add an InterceptorMapping object.
 void addInterceptors(List interceptors)
          Add a List of InterceptorMapping objects.
 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
 Collection getInterceptors()
          Returns a Collection of InterceptorMapping objects.
 String getName()
          Get the name of this interceptor stack configuration.
 int hashCode()
          Generate hashcode based on InterceptorStackConfig's name and its InterceptorMappings.
 void setName(String name)
          Set the name of this interceptor stack configuration.
 
Methods inherited from class com.opensymphony.xwork.util.location.Located
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterceptorStackConfig

public InterceptorStackConfig()
Creates an InterceptorStackConfig object.


InterceptorStackConfig

public InterceptorStackConfig(String name)
Creates an InterceptorStackConfig object with a particular name.

Parameters:
name -
Method Detail

getInterceptors

public Collection getInterceptors()
Returns a Collection of InterceptorMapping objects.

Returns:

setName

public void setName(String name)
Set the name of this interceptor stack configuration.

Parameters:
name -

getName

public String getName()
Get the name of this interceptor stack configuration.

Returns:
String

addInterceptor

public void addInterceptor(InterceptorMapping interceptor)
Add an InterceptorMapping object.

Specified by:
addInterceptor in interface InterceptorListHolder

addInterceptors

public void addInterceptors(List interceptors)
Add a List of InterceptorMapping objects.

Specified by:
addInterceptors in interface InterceptorListHolder

equals

public boolean equals(Object o)
An InterceptorStackConfig object is equals with o only if

Overrides:
equals in class Object

hashCode

public int hashCode()
Generate hashcode based on InterceptorStackConfig's name and its InterceptorMappings.

Overrides:
hashCode in class Object

WebWork Project Page