public class NotificationBroker extends Object implements Referencable
Modifier and Type | Field and Description |
---|---|
static QName |
QNAME_INITIAL_TERMINATION_TIME |
static QName |
QNAME_MESSAGE_CONTENT |
static QName |
QNAME_PULLPOINT_QUEUE_NAME |
static QName |
QNAME_TOPIC_EXPRESSION |
static String |
WSN_URI |
static String |
XPATH1_URI |
Constructor and Description |
---|
NotificationBroker(String address,
Class<?>... cls) |
NotificationBroker(W3CEndpointReference epr,
Class<?>... cls) |
Modifier and Type | Method and Description |
---|---|
NotificationBroker |
getBroker() |
List<Object> |
getCurrentMessage(String topic) |
W3CEndpointReference |
getEpr() |
void |
notify(Referencable publisher,
String topic,
Object msg) |
void |
notify(String topic,
Object msg) |
Registration |
registerPublisher(Referencable publisher,
List<String> topics,
boolean demand) |
Registration |
registerPublisher(Referencable publisher,
String topic) |
Registration |
registerPublisher(Referencable publisher,
String topic,
boolean demand) |
void |
setExtraClasses(Class<?>... c) |
Subscription |
subscribe(Referencable consumer,
String topic) |
Subscription |
subscribe(Referencable consumer,
String topic,
String xpath) |
Subscription |
subscribe(Referencable consumer,
String topic,
String xpath,
boolean raw,
String initialTerminationTime) |
public static final String WSN_URI
public static final String XPATH1_URI
public static final QName QNAME_TOPIC_EXPRESSION
public static final QName QNAME_MESSAGE_CONTENT
public static final QName QNAME_INITIAL_TERMINATION_TIME
public static final QName QNAME_PULLPOINT_QUEUE_NAME
public NotificationBroker(W3CEndpointReference epr, Class<?>... cls)
public void setExtraClasses(Class<?>... c)
public NotificationBroker getBroker()
public W3CEndpointReference getEpr()
getEpr
in interface Referencable
public void notify(Referencable publisher, String topic, Object msg)
public Subscription subscribe(Referencable consumer, String topic) throws TopicExpressionDialectUnknownFault, InvalidFilterFault, TopicNotSupportedFault, UnacceptableInitialTerminationTimeFault, SubscribeCreationFailedFault, InvalidMessageContentExpressionFault, InvalidTopicExpressionFault, ResourceUnknownFault, UnsupportedPolicyRequestFault, UnrecognizedPolicyRequestFault, NotifyMessageNotSupportedFault, InvalidProducerPropertiesExpressionFault
TopicExpressionDialectUnknownFault
InvalidFilterFault
TopicNotSupportedFault
UnacceptableInitialTerminationTimeFault
SubscribeCreationFailedFault
InvalidMessageContentExpressionFault
InvalidTopicExpressionFault
ResourceUnknownFault
UnsupportedPolicyRequestFault
UnrecognizedPolicyRequestFault
NotifyMessageNotSupportedFault
InvalidProducerPropertiesExpressionFault
public Subscription subscribe(Referencable consumer, String topic, String xpath) throws TopicExpressionDialectUnknownFault, InvalidFilterFault, TopicNotSupportedFault, UnacceptableInitialTerminationTimeFault, SubscribeCreationFailedFault, InvalidMessageContentExpressionFault, InvalidTopicExpressionFault, ResourceUnknownFault, UnsupportedPolicyRequestFault, UnrecognizedPolicyRequestFault, NotifyMessageNotSupportedFault, InvalidProducerPropertiesExpressionFault
TopicExpressionDialectUnknownFault
InvalidFilterFault
TopicNotSupportedFault
UnacceptableInitialTerminationTimeFault
SubscribeCreationFailedFault
InvalidMessageContentExpressionFault
InvalidTopicExpressionFault
ResourceUnknownFault
UnsupportedPolicyRequestFault
UnrecognizedPolicyRequestFault
NotifyMessageNotSupportedFault
InvalidProducerPropertiesExpressionFault
public Subscription subscribe(Referencable consumer, String topic, String xpath, boolean raw, String initialTerminationTime) throws TopicNotSupportedFault, InvalidFilterFault, TopicExpressionDialectUnknownFault, UnacceptableInitialTerminationTimeFault, SubscribeCreationFailedFault, InvalidMessageContentExpressionFault, InvalidTopicExpressionFault, UnrecognizedPolicyRequestFault, UnsupportedPolicyRequestFault, ResourceUnknownFault, NotifyMessageNotSupportedFault, InvalidProducerPropertiesExpressionFault
TopicNotSupportedFault
InvalidFilterFault
TopicExpressionDialectUnknownFault
UnacceptableInitialTerminationTimeFault
SubscribeCreationFailedFault
InvalidMessageContentExpressionFault
InvalidTopicExpressionFault
UnrecognizedPolicyRequestFault
UnsupportedPolicyRequestFault
ResourceUnknownFault
NotifyMessageNotSupportedFault
InvalidProducerPropertiesExpressionFault
public List<Object> getCurrentMessage(String topic) throws TopicNotSupportedFault, TopicExpressionDialectUnknownFault, MultipleTopicsSpecifiedFault, InvalidTopicExpressionFault, ResourceUnknownFault, NoCurrentMessageOnTopicFault
public Registration registerPublisher(Referencable publisher, String topic) throws TopicNotSupportedFault, PublisherRegistrationFailedFault, UnacceptableInitialTerminationTimeFault, InvalidTopicExpressionFault, ResourceUnknownFault, PublisherRegistrationRejectedFault
public Registration registerPublisher(Referencable publisher, String topic, boolean demand) throws TopicNotSupportedFault, PublisherRegistrationFailedFault, UnacceptableInitialTerminationTimeFault, InvalidTopicExpressionFault, ResourceUnknownFault, PublisherRegistrationRejectedFault
public Registration registerPublisher(Referencable publisher, List<String> topics, boolean demand) throws TopicNotSupportedFault, PublisherRegistrationFailedFault, UnacceptableInitialTerminationTimeFault, InvalidTopicExpressionFault, ResourceUnknownFault, PublisherRegistrationRejectedFault
Apache CXF