|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.xwork.interceptor.MethodFilterInterceptor
public abstract class MethodFilterInterceptor
An abstract Interceptor
that is applied to selectively according
to specified included/excluded method lists.
com.opensymphony.webwork.interceptor.TokenInterceptor
,
com.opensymphony.webwork.interceptor.TokenSessionStoreInterceptor
,
DefaultWorkflowInterceptor
,
ValidationInterceptor
,
Serialized FormField Summary | |
---|---|
protected java.util.Set |
excludeMethods
|
protected java.util.Set |
includeMethods
|
protected org.apache.commons.logging.Log |
log
|
Constructor Summary | |
---|---|
MethodFilterInterceptor()
|
Method Summary | |
---|---|
protected boolean |
applyInterceptor(ActionInvocation invocation)
|
void |
destroy()
Called to let an interceptor clean up any resources it has allocated. |
protected abstract java.lang.String |
doIntercept(ActionInvocation invocation)
Subclasses must override to implement the interceptor logic. |
java.util.Set |
getExcludeMethodsSet()
|
java.util.Set |
getIncludeMethodsSet()
|
void |
init()
Called after an interceptor is created, but before any requests are processed using intercept , giving
the Interceptor a chance to initialize any needed resources. |
java.lang.String |
intercept(ActionInvocation invocation)
Allows the Interceptor to do some processing on the request before and/or after the rest of the processing of the request by the ActionInvocation or to short-circuit the processing and just return a String return code. |
void |
setExcludeMethods(java.lang.String excludeMethods)
|
void |
setIncludeMethods(java.lang.String includeMethods)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient org.apache.commons.logging.Log log
protected java.util.Set excludeMethods
protected java.util.Set includeMethods
Constructor Detail |
---|
public MethodFilterInterceptor()
Method Detail |
---|
public void setExcludeMethods(java.lang.String excludeMethods)
public java.util.Set getExcludeMethodsSet()
public void setIncludeMethods(java.lang.String includeMethods)
public java.util.Set getIncludeMethodsSet()
public java.lang.String intercept(ActionInvocation invocation) throws java.lang.Exception
Interceptor
ActionInvocation
or to short-circuit the processing and just return a String return code.
intercept
in interface Interceptor
ActionInvocation.invoke()
, or from the interceptor itself.
java.lang.Exception
- any system-level error, as defined in Action.execute()
.protected boolean applyInterceptor(ActionInvocation invocation)
protected abstract java.lang.String doIntercept(ActionInvocation invocation) throws java.lang.Exception
invocation
- the action invocation
java.lang.Exception
public void destroy()
Interceptor
destroy
in interface Interceptor
public void init()
Interceptor
intercept
, giving
the Interceptor a chance to initialize any needed resources.
init
in interface Interceptor
|
XWork Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |