public abstract class AbstractInterceptor extends Object implements ConditionalInterceptor
| Constructor and Description |
|---|
AbstractInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Does nothing
|
void |
init()
Does nothing
|
abstract String |
intercept(ActionInvocation invocation)
Override to handle interception
|
void |
setDisabled(String disable)
Allows to skip executing a given interceptor, just define
<param name="disabled">true</param>
or use other way to override interceptor's parameters, see
docs. |
boolean |
shouldIntercept(ActionInvocation invocation)
Determines if a given interceptor should be executed in the current processing of action invocation.
|
public void init()
init in interface Interceptorpublic void destroy()
destroy in interface Interceptorpublic abstract String intercept(ActionInvocation invocation) throws Exception
intercept in interface Interceptorinvocation - the action invocationActionInvocation.invoke(), or from the interceptor itself.Exception - any system-level error, as defined in Action.execute().public void setDisabled(String disable)
<param name="disabled">true</param>
or use other way to override interceptor's parameters, see
docs.disable - if set to true, execution of a given interceptor will be skipped.public boolean shouldIntercept(ActionInvocation invocation)
ConditionalInterceptorshouldIntercept in interface ConditionalInterceptorinvocation - current ActionInvocation to determine if the interceptor should be executedCopyright © 2000–2024 Apache Software Foundation. All rights reserved.