public class InterceptorResponse extends Object
Modifier and Type | Class and Description |
---|---|
static class |
InterceptorResponse.InterceptorCommand
The command.
|
Modifier and Type | Field and Description |
---|---|
static InterceptorResponse |
CONTINUE
Default reply variable.
|
Constructor and Description |
---|
InterceptorResponse(InterceptorResponse.InterceptorCommand aCommand) |
Modifier and Type | Method and Description |
---|---|
static InterceptorResponse |
abortNow(Exception anException)
Factory method to create a ready to use response.
|
InterceptorResponse.InterceptorCommand |
getCommand() |
Exception |
getException() |
Object |
getReturnValue() |
static InterceptorResponse |
returnLater(Object returnValue)
Factory method to create a ready to use response.
|
static InterceptorResponse |
returnNow(Object returnValue)
Factory method to create a ready to use response.
|
String |
toString() |
public static final InterceptorResponse CONTINUE
public InterceptorResponse(InterceptorResponse.InterceptorCommand aCommand)
public InterceptorResponse.InterceptorCommand getCommand()
public Exception getException()
public Object getReturnValue()
public static final InterceptorResponse returnNow(Object returnValue)
returnValue
- return value which should be returned to the caller.public static final InterceptorResponse returnLater(Object returnValue)
returnValue
- return value which should be returned to the caller.public static final InterceptorResponse abortNow(Exception anException)
anException
- exception to be thrown on the client side.Copyright © 2010-2014 anotheria.net. All Rights Reserved.