org.apache.cxf.wsn.client
Class Publisher
java.lang.Object
org.apache.cxf.wsn.client.Publisher
- All Implemented Interfaces:
- Referencable, NotificationProducer
public class Publisher
- extends Object
- implements NotificationProducer, Referencable
Demand-based publisher.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSN_URI
public static final String WSN_URI
- See Also:
- Constant Field Values
QNAME_TOPIC_EXPRESSION
public static final QName QNAME_TOPIC_EXPRESSION
Publisher
public Publisher(Publisher.Callback callback,
String address)
stop
public void stop()
getEpr
public W3CEndpointReference getEpr()
- Specified by:
getEpr
in interface Referencable
subscribe
public SubscribeResponse subscribe(Subscribe subscribeRequest)
throws InvalidTopicExpressionFault,
ResourceUnknownFault,
InvalidProducerPropertiesExpressionFault,
UnrecognizedPolicyRequestFault,
TopicExpressionDialectUnknownFault,
NotifyMessageNotSupportedFault,
InvalidFilterFault,
UnsupportedPolicyRequestFault,
InvalidMessageContentExpressionFault,
SubscribeCreationFailedFault,
TopicNotSupportedFault,
UnacceptableInitialTerminationTimeFault
- Specified by:
subscribe
in interface NotificationProducer
- Throws:
InvalidTopicExpressionFault
ResourceUnknownFault
InvalidProducerPropertiesExpressionFault
UnrecognizedPolicyRequestFault
TopicExpressionDialectUnknownFault
NotifyMessageNotSupportedFault
InvalidFilterFault
UnsupportedPolicyRequestFault
InvalidMessageContentExpressionFault
SubscribeCreationFailedFault
TopicNotSupportedFault
UnacceptableInitialTerminationTimeFault
unsubscribe
protected void unsubscribe(TopicExpressionType topic)
getCurrentMessage
public GetCurrentMessageResponse getCurrentMessage(GetCurrentMessage getCurrentMessageRequest)
throws InvalidTopicExpressionFault,
ResourceUnknownFault,
TopicExpressionDialectUnknownFault,
MultipleTopicsSpecifiedFault,
NoCurrentMessageOnTopicFault,
TopicNotSupportedFault
- Specified by:
getCurrentMessage
in interface NotificationProducer
- Throws:
InvalidTopicExpressionFault
ResourceUnknownFault
TopicExpressionDialectUnknownFault
MultipleTopicsSpecifiedFault
NoCurrentMessageOnTopicFault
TopicNotSupportedFault
Apache CXF