de.fzj.unicore.wsrflite.xmlbeans.client
Class NotificationClient

java.lang.Object
  extended by de.fzj.unicore.wsrflite.xmlbeans.client.BaseWSRFClient
      extended by de.fzj.unicore.wsrflite.xmlbeans.client.NotificationClient

public class NotificationClient
extends BaseWSRFClient

simple client for receiving notifications

Author:
schuller

Field Summary
 
Fields inherited from class de.fzj.unicore.wsrflite.xmlbeans.client.BaseWSRFClient
epr, logger, proxyMaker, retryDecider, securityProperties, url
 
Constructor Summary
NotificationClient(org.w3.x2005.x08.addressing.EndpointReferenceType consumer, String endpointUrl, org.w3.x2005.x08.addressing.EndpointReferenceType epr)
           
NotificationClient(org.w3.x2005.x08.addressing.EndpointReferenceType consumer, String endpointUrl, org.w3.x2005.x08.addressing.EndpointReferenceType epr, ISecurityProperties sec)
           
 
Method Summary
 void subscribe(QName event)
          subscribe to all changes of the resource property defined by the given qname.
 void subscribe(QName event, String xpath)
          subscribe to "simple" property changes
 void unsubscribe(QName event)
           
 
Methods inherited from class de.fzj.unicore.wsrflite.xmlbeans.client.BaseWSRFClient
checkConnection, checkConnection, destroy, getConnectionStatus, getCurrentTime, getEPR, getLT, getMultipleResourceProperties, getResourceProperty, getResourcePropertyDocument, GetResourcePropertyDocument, getRP, getSecurityProperties, 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

NotificationClient

public NotificationClient(org.w3.x2005.x08.addressing.EndpointReferenceType consumer,
                          String endpointUrl,
                          org.w3.x2005.x08.addressing.EndpointReferenceType epr,
                          ISecurityProperties sec)
                   throws Exception
Parameters:
endpointUrl -
epr -
sec -
Throws:
Exception

NotificationClient

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

subscribe

public void subscribe(QName event)
subscribe to all changes of the resource property defined by the given qname.

Parameters:
event - QName

subscribe

public void subscribe(QName event,
                      String xpath)
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

unsubscribe

public void unsubscribe(QName event)


Copyright © 2010. All Rights Reserved.