org.glassfish.jersey.server.internal.monitoring
Class CompositeRequestEventListener
java.lang.Object
org.glassfish.jersey.server.internal.monitoring.CompositeRequestEventListener
- All Implemented Interfaces:
- RequestEventListener
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.
- Author:
- Miroslav Fuksa (miroslav.fuksa at oracle.com)
|
Method Summary |
void |
onEvent(RequestEvent event)
The method is called when new request event occurs. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositeRequestEventListener
public CompositeRequestEventListener(List<RequestEventListener> requestEventListeners)
- Create a new composite listener.
- Parameters:
requestEventListeners - List of listeners that should be aggregated.
onEvent
public void onEvent(RequestEvent event)
- Description copied from interface:
RequestEventListener
- The method is called when new request event occurs. This method will never be called for method
RequestEvent.Type.START as this event is handled by ApplicationEventListener.
- Specified by:
onEvent in interface RequestEventListener
- Parameters:
event - Request event.
Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.