|
|||||||||||
| 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 Form| Field 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
InterceptorActionInvocation or to short-circuit the processing and just return a String return code.
intercept in interface InterceptorActionInvocation.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
Exceptionpublic void destroy()
Interceptor
destroy in interface Interceptorpublic void init()
Interceptorintercept , 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 | ||||||||||