|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.xwork.interceptor.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 Set |
excludeMethods
|
protected 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 String |
doIntercept(ActionInvocation invocation)
Subclasses must override to implement the interceptor logic. |
Set |
getExcludeMethodsSet()
|
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. |
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(String excludeMethods)
|
void |
setIncludeMethods(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 Set excludeMethods
protected Set includeMethods
Constructor Detail |
public MethodFilterInterceptor()
Method Detail |
public void setExcludeMethods(String excludeMethods)
public Set getExcludeMethodsSet()
public void setIncludeMethods(String includeMethods)
public Set getIncludeMethodsSet()
public String intercept(ActionInvocation invocation) throws 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.
Exception
- any system-level error, as defined in Action.execute()
.protected boolean applyInterceptor(ActionInvocation invocation)
protected abstract String doIntercept(ActionInvocation invocation) throws Exception
invocation
- the action invocation
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 |