Package org.restheart.plugins
Enum Class InterceptPoint
- All Implemented Interfaces:
Serializable,Comparable<InterceptPoint>,Constable
Defines the intercept point of an Interceptor
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionANY can be used exclusively in the dontIntercept attribute of theintercept the request after authentication occursintercept the request before authentication occursIntercepts the request before the exchange is initialized.intercept the response and executes blocking the responseintercept the response and executes asynchronously with the response -
Method Summary
Modifier and TypeMethodDescriptionstatic InterceptPointReturns the enum constant of this class with the specified name.static InterceptPoint[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REQUEST_BEFORE_EXCHANGE_INIT
Intercepts the request before the exchange is initialized.Interceptors on
InterceptPoint.REQUEST_BEFORE_EXCHANGE_INITmust implement the interfaceWildcardInterceptor; in this case,Interceptor.handle(request, response)receives the request asUninitializedRequestand the response asUninitializedResponse.Interceptors can provide a custom initializer with
PluginUtils.attachCustomRequestInitializer()or can modify the raw request content usingRequest.setRawContent(). -
REQUEST_BEFORE_AUTH
intercept the request before authentication occurs -
REQUEST_AFTER_AUTH
intercept the request after authentication occurs -
RESPONSE
intercept the response and executes blocking the response -
RESPONSE_ASYNC
intercept the response and executes asynchronously with the response -
ANY
ANY can be used exclusively in the dontIntercept attribute of the
-
-
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
-