public abstract class AbstractSubscription extends AbstractEndpoint implements PausableSubscriptionManager
Modifier and Type | Field and Description |
---|---|
protected AbstractNotificationBroker |
broker |
protected W3CEndpointReference |
consumerReference |
protected QueryExpressionType |
contentFilter |
protected DatatypeFactory |
datatypeFactory |
static QName |
QNAME_MESSAGE_CONTENT |
static QName |
QNAME_PRODUCER_PROPERTIES |
static QName |
QNAME_TOPIC_EXPRESSION |
static QName |
QNAME_USE_RAW |
protected XMLGregorianCalendar |
terminationTime |
protected TopicExpressionType |
topic |
protected boolean |
useRaw |
static String |
WSN_URI |
static String |
XPATH1_URI |
address, endpoint, manager, name
Constructor and Description |
---|
AbstractSubscription(String name) |
getAddress, getEpr, getManager, getMBeanName, getName, getWSDLLocation, register, setAddress, setManager, unregister
public static final String WSN_URI
public static final String XPATH1_URI
public static final QName QNAME_TOPIC_EXPRESSION
public static final QName QNAME_PRODUCER_PROPERTIES
public static final QName QNAME_MESSAGE_CONTENT
public static final QName QNAME_USE_RAW
protected DatatypeFactory datatypeFactory
protected XMLGregorianCalendar terminationTime
protected boolean useRaw
protected TopicExpressionType topic
protected QueryExpressionType contentFilter
protected W3CEndpointReference consumerReference
protected AbstractNotificationBroker broker
public AbstractSubscription(String name)
public RenewResponse renew(Renew renewRequest) throws ResourceUnknownFault, UnacceptableTerminationTimeFault
renew
in interface PausableSubscriptionManager
renewRequest
- UnacceptableTerminationTimeFault
ResourceUnknownFault
public UnsubscribeResponse unsubscribe(Unsubscribe unsubscribeRequest) throws ResourceUnknownFault, UnableToDestroySubscriptionFault
unsubscribe
in interface PausableSubscriptionManager
unsubscribeRequest
- UnableToDestroySubscriptionFault
ResourceUnknownFault
public PauseSubscriptionResponse pauseSubscription(PauseSubscription pauseSubscriptionRequest) throws PauseFailedFault, ResourceUnknownFault
pauseSubscription
in interface PausableSubscriptionManager
pauseSubscriptionRequest
- PauseFailedFault
ResourceUnknownFault
public ResumeSubscriptionResponse resumeSubscription(ResumeSubscription resumeSubscriptionRequest) throws ResourceUnknownFault, ResumeFailedFault
resumeSubscription
in interface PausableSubscriptionManager
resumeSubscriptionRequest
- ResumeFailedFault
ResourceUnknownFault
protected XMLGregorianCalendar validateInitialTerminationTime(String value) throws UnacceptableInitialTerminationTimeFault
protected XMLGregorianCalendar validateTerminationTime(String value) throws UnacceptableTerminationTimeFault
UnacceptableTerminationTimeFault
protected XMLGregorianCalendar parseTerminationTime(String value)
protected XMLGregorianCalendar getCurrentTime()
public XMLGregorianCalendar getTerminationTime()
public void setTerminationTime(XMLGregorianCalendar terminationTime)
public void create(Subscribe subscribeRequest) throws InvalidFilterFault, InvalidMessageContentExpressionFault, InvalidProducerPropertiesExpressionFault, InvalidTopicExpressionFault, SubscribeCreationFailedFault, TopicExpressionDialectUnknownFault, TopicNotSupportedFault, UnacceptableInitialTerminationTimeFault, UnrecognizedPolicyRequestFault, UnsupportedPolicyRequestFault
InvalidFilterFault
InvalidMessageContentExpressionFault
InvalidProducerPropertiesExpressionFault
InvalidTopicExpressionFault
SubscribeCreationFailedFault
TopicExpressionDialectUnknownFault
TopicNotSupportedFault
UnacceptableInitialTerminationTimeFault
UnrecognizedPolicyRequestFault
UnsupportedPolicyRequestFault
protected abstract void start() throws SubscribeCreationFailedFault
SubscribeCreationFailedFault
protected abstract void pause() throws PauseFailedFault
PauseFailedFault
protected abstract void resume() throws ResumeFailedFault
ResumeFailedFault
protected abstract void renew(XMLGregorianCalendar time) throws UnacceptableTerminationTimeFault
UnacceptableTerminationTimeFault
protected void unsubscribe() throws UnableToDestroySubscriptionFault
UnableToDestroySubscriptionFault
protected void validateSubscription(Subscribe subscribeRequest) throws InvalidFilterFault, InvalidMessageContentExpressionFault, InvalidProducerPropertiesExpressionFault, InvalidTopicExpressionFault, SubscribeCreationFailedFault, TopicExpressionDialectUnknownFault, TopicNotSupportedFault, UnacceptableInitialTerminationTimeFault, UnrecognizedPolicyRequestFault, UnsupportedPolicyRequestFault
InvalidFilterFault
InvalidMessageContentExpressionFault
InvalidProducerPropertiesExpressionFault
InvalidTopicExpressionFault
SubscribeCreationFailedFault
TopicExpressionDialectUnknownFault
TopicNotSupportedFault
UnacceptableInitialTerminationTimeFault
UnrecognizedPolicyRequestFault
UnsupportedPolicyRequestFault
public AbstractNotificationBroker getBroker()
public void setBroker(AbstractNotificationBroker broker)
Apache CXF