Package wt.servlet
Class RequestCaptureDelegate
java.lang.Object
wt.servlet.RequestCaptureDelegate
- All Implemented Interfaces:
NotificationHandlerDelegate
Implementation of
Supported API: true
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
Nested ClassesModifier and TypeClassDescriptionstatic classImplementation ofNotificationHandlerDelegateFactoryfor use in servlet engine withNotificationHandlerMBeanvia its CustomDelegateFactoryClass attribute to constructRequestCaptureDelegateinstances as delegates. -
Method Summary
Modifier and TypeMethodDescriptionvoidReleases servlet request set captured in preHandleNotification.booleanpreHandleNotification(NotificationHandlerMBean mbean, ObjectName source, Notification notification, boolean willOutputInfo) If 'willOutputInfo' is true, then captures set of active servlet requests.
-
Method Details
-
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:
preHandleNotificationin interfaceNotificationHandlerDelegate- Parameters:
mbean- NotificationHandlerMBean from which this delegate is being calledsource- Source of notification; may be null when called from getInfoItemsPreview()notification- Notification object; will be null when called from getInfoItemsPreview() and non-null otherwisewillOutputInfo- 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:
postHandleNotificationin interfaceNotificationHandlerDelegate
-