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(ComponentContext context)
           
NotificationBroker(ComponentContext context, String brokerName)
           
NotificationBroker(JBIContainer container)
           
NotificationBroker(JBIContainer container, String brokerName)
           
NotificationBroker(ServiceMixClient client)
           
NotificationBroker(ServiceMixClient client, String brokerName)
           
 
Method Summary
 List<Object> getCurrentMessage(String topic)
           
 void notify(String topic, Object msg)
           
 Publisher registerPublisher(EndpointReferenceType publisherReference, String topic, boolean demand)
           
 Subscription subscribe(EndpointReferenceType consumer, String topic)
           
 Subscription subscribe(EndpointReferenceType consumer, String topic, String xpath)
           
 Subscription subscribe(EndpointReferenceType consumer, String topic, String xpath, boolean raw)
           
 
Methods inherited from class org.apache.servicemix.wsn.client.AbstractWSAClient
createJaxbClient, createJaxbClient, createWSA, getClient, getEndpoint, getResolver, request, resolveWSA, send, setClient, setEndpoint, setResolver
 
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(ComponentContext context)
                   throws javax.xml.bind.JAXBException
Throws:
javax.xml.bind.JAXBException

NotificationBroker

public NotificationBroker(ComponentContext context,
                          String brokerName)
                   throws javax.xml.bind.JAXBException
Throws:
javax.xml.bind.JAXBException

NotificationBroker

public NotificationBroker(JBIContainer container)
                   throws JBIException,
                          javax.xml.bind.JAXBException
Throws:
JBIException
javax.xml.bind.JAXBException

NotificationBroker

public NotificationBroker(JBIContainer container,
                          String brokerName)
                   throws JBIException,
                          javax.xml.bind.JAXBException
Throws:
JBIException
javax.xml.bind.JAXBException

NotificationBroker

public NotificationBroker(ServiceMixClient client)

NotificationBroker

public NotificationBroker(ServiceMixClient client,
                          String brokerName)
Method Detail

notify

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

subscribe

public Subscription subscribe(EndpointReferenceType consumer,
                              String topic)
                       throws JBIException
Throws:
JBIException

subscribe

public Subscription subscribe(EndpointReferenceType consumer,
                              String topic,
                              String xpath)
                       throws JBIException
Throws:
JBIException

subscribe

public Subscription subscribe(EndpointReferenceType consumer,
                              String topic,
                              String xpath,
                              boolean raw)
                       throws JBIException
Throws:
JBIException

getCurrentMessage

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

registerPublisher

public Publisher registerPublisher(EndpointReferenceType publisherReference,
                                   String topic,
                                   boolean demand)
                            throws JBIException
Throws:
JBIException


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