AbstractInterceptor
instead.@Deprecated public abstract class AbstractInterceptor extends AbstractInterceptor implements ConditionalInterceptor
ConditionalInterceptor.LegacyAdapter
Constructor and Description |
---|
AbstractInterceptor()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract String |
intercept(ActionInvocation invocation)
Deprecated.
Override to handle interception
|
String |
intercept(ActionInvocation invocation)
Deprecated.
Override to handle interception
|
boolean |
shouldIntercept(ActionInvocation invocation)
Deprecated.
|
boolean |
shouldIntercept(ActionInvocation invocation)
Deprecated.
Determines if a given interceptor should be executed in the current processing of action invocation.
|
destroy, init, setDisabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adapt
adapt
destroy, init
public abstract String intercept(ActionInvocation invocation) throws Exception
Exception
public String intercept(ActionInvocation invocation) throws Exception
AbstractInterceptor
intercept
in interface Interceptor
intercept
in class AbstractInterceptor
invocation
- the action invocationActionInvocation.invoke()
, or from the interceptor itself.Exception
- any system-level error, as defined in Action.execute()
.public boolean shouldIntercept(ActionInvocation invocation)
public boolean shouldIntercept(ActionInvocation invocation)
ConditionalInterceptor
shouldIntercept
in interface ConditionalInterceptor
shouldIntercept
in class AbstractInterceptor
invocation
- current ActionInvocation
to determine if the interceptor should be executedCopyright © 2000–2024 Apache Software Foundation. All rights reserved.