org.globus.wsrf.impl
Class NotificationConsumerCallbackManagerImpl

java.lang.Object
  extended byorg.globus.wsrf.impl.NotificationConsumerCallbackManagerImpl
All Implemented Interfaces:
NotificationConsumerCallbackManager, Resource, SecureResource

public class NotificationConsumerCallbackManagerImpl
extends java.lang.Object
implements NotificationConsumerCallbackManager, SecureResource


Field Summary
(package private)  java.util.Map callbackTable
           
(package private)  ResourceSecurityDescriptor resDesc
           
 
Constructor Summary
NotificationConsumerCallbackManagerImpl(ResourceSecurityDescriptor desc)
           
 
Method Summary
 NotifyCallback getCallback(java.util.List topicPath)
          Get the notification callback for the supplied topic path
 ResourceSecurityDescriptor getSecurityDescriptor()
          Method to retrieve the security descriptor for this resource.
 void registerCallback(java.util.List topicPath, NotifyCallback callback)
          Register a notification callback
private static java.lang.String topicPathToString(java.util.List topicPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resDesc

ResourceSecurityDescriptor resDesc

callbackTable

java.util.Map callbackTable
Constructor Detail

NotificationConsumerCallbackManagerImpl

public NotificationConsumerCallbackManagerImpl(ResourceSecurityDescriptor desc)
Method Detail

registerCallback

public void registerCallback(java.util.List topicPath,
                             NotifyCallback callback)
Description copied from interface: NotificationConsumerCallbackManager
Register a notification callback

Specified by:
registerCallback in interface NotificationConsumerCallbackManager
Parameters:
topicPath - The topic path for which this callback should be called. May be null, in which case the callback is called for notification messages for which no other callback is registered
callback - The notification callback
See Also:
NotifyCallback

getCallback

public NotifyCallback getCallback(java.util.List topicPath)
Description copied from interface: NotificationConsumerCallbackManager
Get the notification callback for the supplied topic path

Specified by:
getCallback in interface NotificationConsumerCallbackManager
Parameters:
topicPath - The topic path. A null topic path will return the default callback.
Returns:
The notification callback

topicPathToString

private static java.lang.String topicPathToString(java.util.List topicPath)

getSecurityDescriptor

public ResourceSecurityDescriptor getSecurityDescriptor()
Description copied from interface: SecureResource
Method to retrieve the security descriptor for this resource. If the descriptor does not have Subject and GridMap set, then it is recommended that ResourceSecurityConfig be used initialize the descriptor object. If the initialized is set to true, in the returned descriptor, then no initialization is done.

Specified by:
getSecurityDescriptor in interface SecureResource
Returns:
resource security descriptor for the resource. Can be null.