Package org.restheart.plugins
Enum InterceptPoint
- java.lang.Object
-
- java.lang.Enum<InterceptPoint>
-
- org.restheart.plugins.InterceptPoint
-
- All Implemented Interfaces:
Serializable,Comparable<InterceptPoint>
public enum InterceptPoint extends Enum<InterceptPoint>
Defines the intercept point of an Interceptor- Author:
- Andrea Di Cesare
-
-
Enum Constant Summary
Enum Constants Enum Constant Description REQUEST_AFTER_AUTHintercept the request after authentication occursREQUEST_BEFORE_AUTHintercept the request before authentication occursRESPONSEintercept the response and executes blocking the responseRESPONSE_ASYNCintercept the response and executes asynchronously with the response
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InterceptPointvalueOf(String name)Returns the enum constant of this type with the specified name.static InterceptPoint[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REQUEST_BEFORE_AUTH
public static final InterceptPoint REQUEST_BEFORE_AUTH
intercept the request before authentication occurs
-
REQUEST_AFTER_AUTH
public static final InterceptPoint REQUEST_AFTER_AUTH
intercept the request after authentication occurs
-
RESPONSE
public static final InterceptPoint RESPONSE
intercept the response and executes blocking the response
-
RESPONSE_ASYNC
public static final InterceptPoint RESPONSE_ASYNC
intercept the response and executes asynchronously with the response
-
-
Method Detail
-
values
public static InterceptPoint[] 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 (InterceptPoint c : InterceptPoint.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InterceptPoint 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
-
-