Enum Class InterceptorResponse.InterceptorCommand
java.lang.Object
java.lang.Enum<InterceptorResponse.InterceptorCommand>
org.distributeme.core.interceptor.InterceptorResponse.InterceptorCommand
- All Implemented Interfaces:
Serializable,Comparable<InterceptorResponse.InterceptorCommand>,Constable
- Enclosing class:
InterceptorResponse
public static enum InterceptorResponse.InterceptorCommand
extends Enum<InterceptorResponse.InterceptorCommand>
The command.
- Author:
- lrosenberg
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAbort the request, an exception should be attached to this response and thrown by the DiMe code.Force the method to fail.Proceed with request.Overwrite the return value, but allow the call to be executed regularly.Don't further process the call and return a preset value instead.Return current call, but mark the service as failed. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONTINUE
Proceed with request. -
ABORT
Abort the request, an exception should be attached to this response and thrown by the DiMe code. -
RETURN
Don't further process the call and return a preset value instead. -
OVERWRITE_RETURN_AND_CONTINUE
Overwrite the return value, but allow the call to be executed regularly. Only works in AFTER phases. -
ABORT_AND_FAIL
Force the method to fail. Only works if fail strategy is configured. -
RETURN_AND_FAIL
Return current call, but mark the service as failed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-