Package org.mockserver.model
Enum Action.Type
- java.lang.Object
-
- java.lang.Enum<Action.Type>
-
- org.mockserver.model.Action.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<Action.Type>
public static enum Action.Type extends Enum<Action.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERROR
FORWARD
FORWARD_CLASS_CALLBACK
FORWARD_OBJECT_CALLBACK
FORWARD_REPLACE
FORWARD_TEMPLATE
RESPONSE
RESPONSE_CLASS_CALLBACK
RESPONSE_OBJECT_CALLBACK
RESPONSE_TEMPLATE
-
Field Summary
Fields Modifier and Type Field Description Action.Direction
direction
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Action.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static Action.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FORWARD
public static final Action.Type FORWARD
-
FORWARD_TEMPLATE
public static final Action.Type FORWARD_TEMPLATE
-
FORWARD_CLASS_CALLBACK
public static final Action.Type FORWARD_CLASS_CALLBACK
-
FORWARD_OBJECT_CALLBACK
public static final Action.Type FORWARD_OBJECT_CALLBACK
-
FORWARD_REPLACE
public static final Action.Type FORWARD_REPLACE
-
RESPONSE
public static final Action.Type RESPONSE
-
RESPONSE_TEMPLATE
public static final Action.Type RESPONSE_TEMPLATE
-
RESPONSE_CLASS_CALLBACK
public static final Action.Type RESPONSE_CLASS_CALLBACK
-
RESPONSE_OBJECT_CALLBACK
public static final Action.Type RESPONSE_OBJECT_CALLBACK
-
ERROR
public static final Action.Type ERROR
-
-
Field Detail
-
direction
public final Action.Direction direction
-
-
Method Detail
-
values
public static Action.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Action.Type c : Action.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Action.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-