public static enum RequestEvent.Type extends Enum<RequestEvent.Type>
Enum Constant and Description |
---|
EXCEPTION_MAPPER_FOUND
An
ExceptionMapper is successfully found and it is going to be executed. |
EXCEPTION_MAPPING_FINISHED
Exception mapping is finished.
|
FINISHED
The request and response processing has finished.
|
LOCATOR_MATCHED
The sub resource locator method is found and it will be called.
|
MATCHING_START
The matching of the resource and resource method has started.
|
ON_EXCEPTION
Exception has been thrown during the request/response processing.
|
REQUEST_FILTERED
Execution of
container request filters has been finished. |
REQUEST_MATCHED
The matching has been finished and
container request filters
are going to be executed. |
RESOURCE_METHOD_FINISHED
Resource method execution has finished.
|
RESOURCE_METHOD_START
Resource method is going to be executed.
|
RESP_FILTERS_FINISHED
Execution of
Container response filters has finished. |
RESP_FILTERS_START
Container response filters are going to be executed. |
START
The request processing has started.
|
SUBRESOURCE_LOCATED
The 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 . |
Modifier and Type | Method and Description |
---|---|
static RequestEvent.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RequestEvent.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RequestEvent.Type START
ApplicationEventListener.onRequest(RequestEvent)
and will
never be called for RequestEventListener.onEvent(RequestEvent)
.public static final RequestEvent.Type MATCHING_START
public static final RequestEvent.Type LOCATOR_MATCHED
RequestEvent.getUriInfo()
by method
ExtendedUriInfo.getMatchedResourceLocators()
.public static final RequestEvent.Type SUBRESOURCE_LOCATED
model processor
, validated and the matching
is going to be performed on the sub resource
.
The sub resource can be retrieved from RequestEvent.getUriInfo()
by method
ExtendedUriInfo.getLocatorSubResources()
.public static final RequestEvent.Type REQUEST_MATCHED
container request filters
are 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 RequestEvent.getUriInfo()
.public static final RequestEvent.Type REQUEST_FILTERED
container request filters
has been finished.public static final RequestEvent.Type RESOURCE_METHOD_START
ExtendedUriInfo
returned by RequestEvent.getUriInfo()
.public static final RequestEvent.Type RESOURCE_METHOD_FINISHED
public static final RequestEvent.Type RESP_FILTERS_START
Container response filters
are 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_EXCEPTION
event type precedes this event.public static final RequestEvent.Type RESP_FILTERS_FINISHED
Container response filters
has finished.
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_EXCEPTION
event type precedes this event.public static final RequestEvent.Type ON_EXCEPTION
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 RequestEvent.getException()
.public static final RequestEvent.Type EXCEPTION_MAPPER_FOUND
ExceptionMapper
is successfully found and it is going to be executed. The
ExceptionMapper
can be retrieved by RequestEvent.getExceptionMapper()
.public static final RequestEvent.Type EXCEPTION_MAPPING_FINISHED
RequestEvent.isResponseSuccessfullyMapped()
which returns true when the exception mapping
was successful. In this case the new response is available in the RequestEvent.getContainerResponse()
.public static final RequestEvent.Type FINISHED
RequestEvent.isSuccess()
method. This method is called even when request processing fails and ends
up with not handled exceptions.public static RequestEvent.Type[] values()
for (RequestEvent.Type c : RequestEvent.Type.values()) System.out.println(c);
public static RequestEvent.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.