org.apache.beehive.netui.pageflow.interceptor
Class InterceptorContext
Object
InterceptorContext
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- RequestInterceptorContext
public class InterceptorContext
- extends Object
- implements Serializable
Base context for callbacks on Interceptor
s.
- See Also:
- Serialized Form
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InterceptorContext
public InterceptorContext()
setResultOverride
public void setResultOverride(Object newResult,
Interceptor interceptor)
hasResultOverride
public boolean hasResultOverride()
getResultOverride
public Object getResultOverride()
getOverridingInterceptor
public Interceptor getOverridingInterceptor()
addInterceptors
protected static void addInterceptors(InterceptorConfig[] configBeans,
List interceptorsList,
Class baseClassOrInterface)
addInterceptor
protected static Interceptor addInterceptor(InterceptorConfig config,
Class baseClassOrInterface,
List interceptors)
- Instantiates an interceptor, based on the class name in the given InterceptorConfig, and adds it to the
given collection of interceptors.
- Parameters:
config
- the InterceptorConfig used to determine the interceptor class.baseClassOrInterface
- the required base class or interface. May be null
.interceptors
- the List of interceptors to which to add.
- Returns:
- an initialized Interceptor, or
null
if an error occurred.
createInterceptor
protected static Interceptor createInterceptor(InterceptorConfig config,
Class baseClassOrInterface)
- Instantiates an interceptor, based on the class name in the given InterceptorConfig.
- Parameters:
config
- the InterceptorConfig used to determine the interceptor class.baseClassOrInterface
- the required base class or interface. May be null
.
- Returns:
- an initialized Interceptor, or
null
if an error occurred.