de.fzj.unicore.uas.client
Class UASNotificationClient

java.lang.Object
  extended by de.fzj.unicore.wsrflite.xmlbeans.client.BaseWSRFClient
      extended by de.fzj.unicore.uas.client.BaseUASClient
          extended by de.fzj.unicore.uas.client.UASNotificationClient

public class UASNotificationClient
extends BaseUASClient

simple client for managing notifications (i.e. subscribing, unsubscribing).

Author:
schuller

Field Summary
 
Fields inherited from class de.fzj.unicore.wsrflite.xmlbeans.client.BaseWSRFClient
epr, proxyMaker, retryDecider, securityProperties, url
 
Constructor Summary
UASNotificationClient(org.w3.x2005.x08.addressing.EndpointReferenceType consumer, org.w3.x2005.x08.addressing.EndpointReferenceType epr, IUASSecurityProperties sec)
           
UASNotificationClient(org.w3.x2005.x08.addressing.EndpointReferenceType consumer, java.lang.String endpointUrl, org.w3.x2005.x08.addressing.EndpointReferenceType epr)
           
UASNotificationClient(org.w3.x2005.x08.addressing.EndpointReferenceType consumer, java.lang.String endpointUrl, org.w3.x2005.x08.addressing.EndpointReferenceType epr, IUASSecurityProperties sec)
           
 
Method Summary
 void subscribe(javax.xml.namespace.QName event)
          subscribe to all changes of the resource property defined by the given qname.
 void subscribe(javax.xml.namespace.QName event, java.lang.String xpath)
          subscribe to "simple" property changes
 void unsubscribe(javax.xml.namespace.QName event)
           
 
Methods inherited from class de.fzj.unicore.uas.client.BaseUASClient
extractReceiver, getSecurityProperties, getServerVersion, setRetryDefaults
 
Methods inherited from class de.fzj.unicore.wsrflite.xmlbeans.client.BaseWSRFClient
checkConnection, checkConnection, destroy, getConnectionStatus, getCurrentTime, getEPR, getLT, getMultipleResourceProperties, getResourceProperty, getResourcePropertyDocument, GetResourcePropertyDocument, getRP, getTerminationTime, getUpdateInterval, getUrl, makeProxy, queryResourceProperties, setConnectionTimeout, setConnectionTimeout, setRetryHandler, setTerminationTime, setUpdateInterval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UASNotificationClient

public UASNotificationClient(org.w3.x2005.x08.addressing.EndpointReferenceType consumer,
                             java.lang.String endpointUrl,
                             org.w3.x2005.x08.addressing.EndpointReferenceType epr,
                             IUASSecurityProperties sec)
                      throws java.lang.Exception
Parameters:
consumer - - the EPR of the notification consumer service
endpointUrl - - the URL of the target service
epr - - the EPR of the target service
sec - - the security settings to use
Throws:
java.lang.Exception

UASNotificationClient

public UASNotificationClient(org.w3.x2005.x08.addressing.EndpointReferenceType consumer,
                             org.w3.x2005.x08.addressing.EndpointReferenceType epr,
                             IUASSecurityProperties sec)
                      throws java.lang.Exception
Parameters:
consumer - - the EPR of the notification consumer service
epr - - the EPR of the target service
sec - - the security settings to use
Throws:
java.lang.Exception

UASNotificationClient

public UASNotificationClient(org.w3.x2005.x08.addressing.EndpointReferenceType consumer,
                             java.lang.String endpointUrl,
                             org.w3.x2005.x08.addressing.EndpointReferenceType epr)
                      throws java.lang.Exception
Parameters:
endpointUrl -
epr -
Throws:
java.lang.Exception
Method Detail

subscribe

public void subscribe(javax.xml.namespace.QName event)
               throws java.lang.Exception
subscribe to all changes of the resource property defined by the given qname.

Parameters:
event - QName
Throws:
java.lang.Exception

subscribe

public void subscribe(javax.xml.namespace.QName event,
                      java.lang.String xpath)
               throws java.lang.Exception
subscribe to "simple" property changes

Parameters:
event - The QName of the resource property to watch
xpath - An xpath expression to use as a message filter
Throws:
java.lang.Exception

unsubscribe

public void unsubscribe(javax.xml.namespace.QName event)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2006-2010 Research Center Juelich. All Rights Reserved.