Class CompositeRequestEventListener
java.lang.Object
org.glassfish.jersey.server.internal.monitoring.CompositeRequestEventListener
- All Implemented Interfaces:
RequestEventListener
request event listener
that aggregates more request event listener into one.
Calling RequestEventListener.onEvent(org.glassfish.jersey.server.monitoring.RequestEvent)
on
this composite listener will forward calls to all aggregated listeners.- Author:
- Miroslav Fuksa
-
Constructor Summary
ConstructorDescriptionCompositeRequestEventListener
(List<RequestEventListener> requestEventListeners) Create a new composite listener. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onEvent
(RequestEvent event) The method is called when new request event occurs.
-
Constructor Details
-
CompositeRequestEventListener
Create a new composite listener.- Parameters:
requestEventListeners
- List of listeners that should be aggregated.
-
-
Method Details
-
onEvent
Description copied from interface:RequestEventListener
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
.- Specified by:
onEvent
in interfaceRequestEventListener
- Parameters:
event
- Request event.
-