com.sun.ws.management.framework.eventing
Interface SubscriptionManagerInterface

All Superinterfaces:
Handler

public interface SubscriptionManagerInterface
extends Handler

This interface defines the required methods for a SubscriptionManagerInterface instance. A subscription manager must support RENEW, UNSUBSCRIBE and optionally may support SUBSCRIPTIONEND. The GETSTATUS message is explicitly NOT RECOMMENDED.

Author:
Simeon

Method Summary
 Management create(HandlerContext context, Management request, Management response)
          This method is encouraged so that a remote Event Source can send Transfer.Create requests to create/register new EventSources and new Event Sink(Subscribers) to this SubscriptionManager instance.
 java.lang.String getSubscriptionManagerAddress()
          By extending Handler this requires that the instance be a Wiseman handler.
 java.lang.String getSubscriptionManagerResourceURI()
           
 Management unsubsubscribe(HandlerContext context, Management request, Management response)
          Fundamental method for the remote SubscriptionManager.
 
Methods inherited from interface com.sun.ws.management.server.Handler
handle
 

Method Detail

getSubscriptionManagerAddress

java.lang.String getSubscriptionManagerAddress()
By extending Handler this requires that the instance be a Wiseman handler.


getSubscriptionManagerResourceURI

java.lang.String getSubscriptionManagerResourceURI()

create

Management create(HandlerContext context,
                  Management request,
                  Management response)
                  throws javax.xml.soap.SOAPException,
                         javax.xml.bind.JAXBException,
                         javax.xml.datatype.DatatypeConfigurationException
This method is encouraged so that a remote Event Source can send Transfer.Create requests to create/register new EventSources and new Event Sink(Subscribers) to this SubscriptionManager instance. See eventsubman_Handler for a default implementation that is a suggestion for how such a resource could be built.

Parameters:
context - Handler context if useful
request - Management message
response - Management message
Throws:
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException
javax.xml.datatype.DatatypeConfigurationException

unsubsubscribe

Management unsubsubscribe(HandlerContext context,
                          Management request,
                          Management response)
Fundamental method for the remote SubscriptionManager. Should handle the task of registering a subscriber/eventsink from this Subscription Manager.

Parameters:
context - Handler context if useful
request - Management message
response - Management message