Enum Class RequestEvent.Type
- All Implemented Interfaces:
- Enclosing interface:
The type of the event which describes in which request processing phase the event is triggered.
Nested Class Summary
Enum Constant SummaryEnum ConstantDescriptionAn
ExceptionMapperis successfully found and it is going to be executed.Exception mapping is finished.The request and response processing has finished.The sub resource locator method is found and it will be called.The matching of the resource and resource method has started.Exception has been thrown during the request/response processing.The matching has been finished and
container request filtersare going to be executed.Resource method execution has finished.Resource method is going to be executed.Execution of
Container response filtershas finished.
Container response filtersare going to be executed.The request processing has started.
Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Enum Constant Details
STARTpublic static final RequestEvent.Type START
MATCHING_STARTpublic static final RequestEvent.Type MATCHING_STARTThe matching of the resource and resource method has started.
LOCATOR_MATCHEDpublic static final RequestEvent.Type LOCATOR_MATCHED
SUBRESOURCE_LOCATEDpublic static final RequestEvent.Type SUBRESOURCE_LOCATEDThe sub resource has been returned from sub resource locator, model was constructed, enhanced by
model processor, validated and the matching is going to be performed on the sub
resource. The sub resource can be retrieved from
REQUEST_MATCHEDpublic static final RequestEvent.Type REQUEST_MATCHEDThe matching has been finished and
container request filtersare going to be executed. The request filters can be retrieved from event by
RequestEvent.getContainerRequestFilters()method. This method also determines end of the matching process and therefore the matching results can be retrieved using
REQUEST_FILTEREDpublic static final RequestEvent.Type REQUEST_FILTERED
RESOURCE_METHOD_STARTpublic static final RequestEvent.Type RESOURCE_METHOD_START
RESOURCE_METHOD_FINISHEDpublic static final RequestEvent.Type RESOURCE_METHOD_FINISHEDResource method execution has finished. In the case of synchronous processing the response is not available yet. In the case of asynchronous processing the situation depends on the method design and it in some cases on race conditions. In asynchronous cases this event can be triggered even after the response is completely processed. Exactly defined, this event is triggered when the thread executing the resource method returns from the resource method.
RESP_FILTERS_STARTpublic static final RequestEvent.Type RESP_FILTERS_START
Container response filtersare going to be executed. In this point the response is already available and can be retrieved by
RequestEvent.getContainerResponse(). The response filters can be retrieved by
RequestEvent.getContainerResponseFilters(). This phase is executed in the regular response processing but might also been executed for processing on response mapped from exceptions by
exception mappers. In this case the
ON_EXCEPTIONevent type precedes this event.
RESP_FILTERS_FINISHEDpublic static final RequestEvent.Type RESP_FILTERS_FINISHED
ON_EXCEPTIONpublic static final RequestEvent.Type ON_EXCEPTIONException has been thrown during the request/response processing. This situation can occur in almost all phases of request processing and therefore there is no fixed order of events in which this event type can be triggered. The origin of exception can be retrieved by
RequestEvent.getExceptionCause(). This event type can be received even two types in the case when first exception is thrown during the standard request processing and the second one is thrown during the processing of the response mapped from the exception. The exception thrown can be retrieved by
EXCEPTION_MAPPER_FOUNDpublic static final RequestEvent.Type EXCEPTION_MAPPER_FOUND
EXCEPTION_MAPPING_FINISHEDpublic static final RequestEvent.Type EXCEPTION_MAPPING_FINISHED
FINISHEDpublic static final RequestEvent.Type FINISHEDThe request and response processing has finished. The result of request processing can be checked by
RequestEvent.isSuccess()method. This method is called even when request processing fails and ends up with not handled exceptions.
valuespublic static RequestEvent.Type values()Returns an array containing the constants of this enum class, in the order they are declared.
- an array containing the constants of this enum class, in the order they are declared
valueOfReturns 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.)