public class MockInterceptor extends Object implements Interceptor
Interceptor.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_FOO_VALUE |
| Constructor and Description |
|---|
MockInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Called to let an interceptor clean up any resources it has allocated.
|
boolean |
equals(Object o) |
String |
getExpectedFoo() |
String |
getFoo() |
int |
hashCode() |
void |
init()
Called after an Interceptor is created, but before any requests are processed using the intercept() methodName.
|
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) |
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 void destroy()
destroy in interface Interceptorpublic void init()
init in interface Interceptorpublic 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().Copyright © 2000–2016 Apache Software Foundation. All rights reserved.