Interface RequestEventListener
-
public interface RequestEventListener
Non-registrable provider that listens torequest 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 theRequestEventListener
must be returned from theApplicationEventListener.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.- Author:
- Miroslav Fuksa
- See Also:
for details of how to register the .
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onEvent(RequestEvent event)
The method is called when new request event occurs.
-
-
-
Method Detail
-
onEvent
void onEvent(RequestEvent event)
The method is called when new request event occurs. This method will never be called for methodRequestEvent.Type.START
as this event is handled byApplicationEventListener
.- Parameters:
event
- Request event.
-
-