org.apache.beehive.netui.pageflow.interceptor
Class InterceptorConfig

Object
  extended by InterceptorConfig
All Implemented Interfaces:
Serializable

public class InterceptorConfig
extends Object
implements Serializable

Class used to hold configuration information for an Interceptor. Each interceptor instance will have it's own configuration object which holds the interceptor implementation class and a set of custom properties that can be provided for each interceptor instance.

See Also:
Serialized Form

Constructor Summary
protected InterceptorConfig()
          Default constructor.
protected InterceptorConfig(String interceptorClass)
          Create this config object for an intereceptor with the given class name.
 
Method Summary
 Map getCustomProperties()
          Get the interceptor's custom properties.
 String getCustomProperty(String name)
          Get the custom property value corresponding to the given property name.
 String getInterceptorClass()
          Get the interceptor class.
 void setInterceptorClass(String interceptorClass)
          Set the interceptor class.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterceptorConfig

protected InterceptorConfig()
Default constructor.


InterceptorConfig

protected InterceptorConfig(String interceptorClass)
Create this config object for an intereceptor with the given class name.

Parameters:
interceptorClass - the Interceptor's class name
Method Detail

getInterceptorClass

public String getInterceptorClass()
Get the interceptor class.

Returns:
the String for the interceptor's class

setInterceptorClass

public void setInterceptorClass(String interceptorClass)
Set the interceptor class.

Parameters:
interceptorClass - the String for the interceptor's class

getCustomProperties

public Map getCustomProperties()
Get the interceptor's custom properties. This returned Map contains pairs of <String, String>.

Returns:
the map of custom properties

getCustomProperty

public String getCustomProperty(String name)
Get the custom property value corresponding to the given property name.

Parameters:
name - the name of the property
Returns:
the value of the property; if the property name isn't found, the value will be null