wt.servlet
Class RequestCaptureDelegate

java.lang.Object
  extended by wt.servlet.RequestCaptureDelegate
All Implemented Interfaces:
NotificationHandlerDelegate

public class RequestCaptureDelegate
extends Object
implements NotificationHandlerDelegate

Implementation of NotificationHandlerDelegate for use in servlet engine to capture a set of active servlet requests immediately prior to notification and then release it immediately thereafter.

Supported API: true


Nested Class Summary
static class RequestCaptureDelegate.Factory
          Implementation of NotificationHandlerDelegateFactory for use in servlet engine with NotificationHandlerMBean via its CustomDelegateFactoryClass attribute to construct RequestCaptureDelegate instances as delegates.
 
Method Summary
 void postHandleNotification()
          Releases servlet request set captured in preHandleNotification.
 boolean preHandleNotification(NotificationHandlerMBean mbean, ObjectName source, Notification notification, boolean willOutputInfo)
          If 'willOutputInfo' is true, then captures set of active servlet requests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

preHandleNotification

public boolean preHandleNotification(NotificationHandlerMBean mbean,
                                     ObjectName source,
                                     Notification notification,
                                     boolean willOutputInfo)
If 'willOutputInfo' is true, then captures set of active servlet requests.

Supported API: true

Specified by:
preHandleNotification in interface NotificationHandlerDelegate
Parameters:
mbean - NotificationHandlerMBean from which this delegate is being called
source - Source of notification; may be null when called from getInfoItemsPreview()
notification - Notification object; will be null when called from getInfoItemsPreview() and non-null otherwise
willOutputInfo - Whether the NotificationHandlerMBean would produce output on its own
Returns:
Whether NotificationHandlerMBean should still produce output; result is ignored when called from getInfoItemsPreview()

postHandleNotification

public void postHandleNotification()
Releases servlet request set captured in preHandleNotification.

Supported API: true

Specified by:
postHandleNotification in interface NotificationHandlerDelegate