public class MockInterceptor extends AbstractInterceptor
Interceptor
.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_FOO_VALUE |
Constructor and Description |
---|
MockInterceptor() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getExpectedFoo() |
String |
getFoo() |
int |
hashCode() |
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 DefaultActionInvocation or to short-circuit the processing and just return a String return code.
|
boolean |
isExecuted() |
void |
setExpectedFoo(String expectedFoo) |
void |
setFoo(String foo) |
destroy, init
public static final String DEFAULT_FOO_VALUE
public boolean isExecuted()
public void setExpectedFoo(String expectedFoo)
public String getExpectedFoo()
public void setFoo(String foo)
public String getFoo()
public String intercept(ActionInvocation invocation) throws Exception
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()
.Copyright © 2000–2020 Apache Software Foundation. All rights reserved.