org.apache.servicemix.wsn.client
Class NotificationBroker

java.lang.Object
  extended by org.apache.servicemix.wsn.client.AbstractWSAClient
      extended by org.apache.servicemix.wsn.client.NotificationBroker

public class NotificationBroker
extends AbstractWSAClient


Field Summary
static QName NOTIFICATION_BROKER
           
static String WSN_SERVICE
           
static String WSN_URI
           
 
Constructor Summary
NotificationBroker(javax.jbi.component.ComponentContext context)
           
NotificationBroker(javax.jbi.component.ComponentContext context, String brokerName)
           
NotificationBroker(javax.jbi.component.ComponentContext context, javax.xml.ws.wsaddressing.W3CEndpointReference endpoint)
           
 
Method Summary
 List<Object> getCurrentMessage(String topic)
           
 List<Object> getResourceProperty(QName property)
           
 void notify(String topic, Object msg)
           
 Publisher registerPublisher(javax.xml.ws.wsaddressing.W3CEndpointReference publisherReference, String topic, boolean demand)
           
 Subscription subscribe(javax.xml.ws.wsaddressing.W3CEndpointReference consumer, String topic)
           
 Subscription subscribe(javax.xml.ws.wsaddressing.W3CEndpointReference consumer, String topic, String xpath)
           
 Subscription subscribe(javax.xml.ws.wsaddressing.W3CEndpointReference consumer, String topic, String xpath, boolean raw)
           
 
Methods inherited from class org.apache.servicemix.wsn.client.AbstractWSAClient
createWSA, getContext, getEndpoint, getServiceEndpoint, getWSAAddress, isJbiWrapped, request, request, resolveWSA, send, send, setContext, setEndpoint, setJbiWrapped, setServiceEndpoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WSN_URI

public static final String WSN_URI
See Also:
Constant Field Values

WSN_SERVICE

public static final String WSN_SERVICE
See Also:
Constant Field Values

NOTIFICATION_BROKER

public static final QName NOTIFICATION_BROKER
Constructor Detail

NotificationBroker

public NotificationBroker(javax.jbi.component.ComponentContext context)

NotificationBroker

public NotificationBroker(javax.jbi.component.ComponentContext context,
                          String brokerName)

NotificationBroker

public NotificationBroker(javax.jbi.component.ComponentContext context,
                          javax.xml.ws.wsaddressing.W3CEndpointReference endpoint)
Method Detail

notify

public void notify(String topic,
                   Object msg)
            throws javax.jbi.JBIException
Throws:
javax.jbi.JBIException

subscribe

public Subscription subscribe(javax.xml.ws.wsaddressing.W3CEndpointReference consumer,
                              String topic)
                       throws javax.jbi.JBIException
Throws:
javax.jbi.JBIException

subscribe

public Subscription subscribe(javax.xml.ws.wsaddressing.W3CEndpointReference consumer,
                              String topic,
                              String xpath)
                       throws javax.jbi.JBIException
Throws:
javax.jbi.JBIException

subscribe

public Subscription subscribe(javax.xml.ws.wsaddressing.W3CEndpointReference consumer,
                              String topic,
                              String xpath,
                              boolean raw)
                       throws javax.jbi.JBIException
Throws:
javax.jbi.JBIException

getCurrentMessage

public List<Object> getCurrentMessage(String topic)
                               throws javax.jbi.JBIException
Throws:
javax.jbi.JBIException

registerPublisher

public Publisher registerPublisher(javax.xml.ws.wsaddressing.W3CEndpointReference publisherReference,
                                   String topic,
                                   boolean demand)
                            throws javax.jbi.JBIException
Throws:
javax.jbi.JBIException

getResourceProperty

public List<Object> getResourceProperty(QName property)
                                 throws javax.jbi.JBIException
Throws:
javax.jbi.JBIException


Copyright © 2005-2008 The Apache Software Foundation. All Rights Reserved.