public interface RequestEventListener
request events
.
The implementation of the interface will be called for request events when they occur. The provider
cannot be registered as a standard JAX-RS or Jersey provider. The instance of the
RequestEventListener
must be returned from the ApplicationEventListener.onRequest(RequestEvent)
.
This will register the instance for listening of request events for one particular request. Once
the processing of the request is finished, the instance will be ignored by the Jersey runtime and not used
for processing of further requests.for details of how to register the {@code RequestEventListener}.
Modifier and Type | Method and Description |
---|---|
void |
onEvent(RequestEvent event)
The method is called when new request event occurs.
|
void onEvent(RequestEvent event)
RequestEvent.Type.START
as this event is handled by ApplicationEventListener
.event
- Request event.Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.