mx4j.tools.remote.http

Interface HTTPConnection

public interface HTTPConnection extends JMXConnection

Version: $Revision: 1.3 $

Method Summary
IntegeraddNotificationListener(ObjectName name, Object filter, Subject delegate)
Stringconnect(Object credentials)
This method is called when a call initiated by javax.management.remote.JMXConnector#connect arrives on server side.
NotificationResultfetchNotifications(long clientSequenceNumber, int maxNotifications, long timeout)
voidremoveNotificationListeners(ObjectName name, Integer[] listenerIDs, Subject delegate)

Method Detail

addNotificationListener

public Integer addNotificationListener(ObjectName name, Object filter, Subject delegate)

connect

public String connect(Object credentials)
This method is called when a call initiated by javax.management.remote.JMXConnector#connect arrives on server side. For HTTP connections, the socket is handled by the web container, but the remote procedure call that arrives along with the HTTP request is parsed and then (normally) forwarded to a JavaBean (that will implement this interface). Implementations of this method will normally call ConnectionManager.

Parameters: credentials The credential for authentication

Returns: The connection id for the newly created connection

Throws: IOException If a communication problem occurs SecurityException If the authentication fails

fetchNotifications

public NotificationResult fetchNotifications(long clientSequenceNumber, int maxNotifications, long timeout)

removeNotificationListeners

public void removeNotificationListeners(ObjectName name, Integer[] listenerIDs, Subject delegate)
Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.