public class CompositeRequestEventListener extends Object implements 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.Constructor and Description |
---|
CompositeRequestEventListener(List<RequestEventListener> requestEventListeners)
Create a new composite listener.
|
Modifier and Type | Method and Description |
---|---|
void |
onEvent(RequestEvent event)
The method is called when new request event occurs.
|
public CompositeRequestEventListener(List<RequestEventListener> requestEventListeners)
requestEventListeners
- List of listeners that should be aggregated.public void onEvent(RequestEvent event)
RequestEventListener
RequestEvent.Type.START
as this event is handled by ApplicationEventListener
.onEvent
in interface RequestEventListener
event
- Request event.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.