|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fzj.unicore.wsrflite.xmlbeans.wsn.impl.NotificationProducerSupport
public class NotificationProducerSupport
implements the NotificationProducer, supports
NPSupportTest for an example.
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
logger
|
protected ArrayList<String> |
subscriptionIds
|
protected ArrayList<org.oasisOpen.docs.wsn.b2.TopicDocument> |
topics
|
| Fields inherited from interface de.fzj.unicore.wsrflite.xmlbeans.wsn.NotificationProducer |
|---|
GETCURRENTMESSAGE_ACTION, SUBSCRIBE_ACTION |
| Fields inherited from interface de.fzj.unicore.wsrflite.xmlbeans.wsn.WSNConstants |
|---|
BW_BASENS, RPFixedTopicSet, RPTopicExpression, RPTopicExpressionDialect, RPTopicSet, SIMPLE_TOPIC, WSN_CHANNEL, XPATH_URI |
| Constructor Summary | |
|---|---|
NotificationProducerSupport()
|
|
| Method Summary | |
|---|---|
protected boolean |
acceptTopic(org.oasisOpen.docs.wsn.b2.FilterType f)
do we accept the filter? |
void |
addSimpleTopic(QName q)
|
protected org.oasisOpen.docs.wsn.b2.NotificationMessageHolderType |
createMessage(ISubscription subscription,
Event e)
|
protected org.oasisOpen.docs.wsn.b2.NotificationMessageHolderType |
createRPValueChangeMessage(ISubscription subscription,
Event e)
creates a message using the ResourcePropertyValueChanged document defined in the WS-ResourceProperties spec. |
protected org.oasisOpen.docs.wsn.b2.NotificationMessageHolderType |
createSimpleMessage(ISubscription subscription,
Event e)
make a simple message |
boolean |
deleteSubscription(String subscriptionID)
deletes a subscription |
org.oasisOpen.docs.wsn.b2.GetCurrentMessageResponseDocument |
GetCurrentMessage(org.oasisOpen.docs.wsn.b2.GetCurrentMessageDocument req)
|
org.oasisOpen.docs.wsn.b2.TopicExpressionDialectDocument |
getExpressionDialectDocument()
|
org.oasisOpen.docs.wsn.b2.FixedTopicSetDocument |
getFixedTopicSetDocument()
|
String |
getProducerURL()
|
org.oasisOpen.docs.wsn.b2.TopicExpressionDocument[] |
getTopicExpressionDocuments()
|
void |
notifyObservers()
this method will check the subscriber list and notify them of any events |
protected boolean |
passesMessageContentFilter(String mcd,
org.oasisOpen.docs.wsn.b2.NotificationMessageHolderType[] messages)
|
void |
postEvent(QName q,
org.apache.xmlbeans.XmlObject[] newValue)
post event so subscribers to this will be notified |
void |
sendNotifications(org.oasisOpen.docs.wsn.b2.NotificationMessageHolderType[] messages,
org.oasisOpen.docs.wsn.b2.ConsumerReferenceDocument consumer,
String filter)
send messages to a consumer |
void |
setProducerURL(String url)
|
void |
setSubscriptionServiceName(String subscriptionServiceName)
|
org.oasisOpen.docs.wsn.b2.SubscribeResponseDocument |
Subscribe(org.oasisOpen.docs.wsn.b2.SubscribeDocument req)
subscribe |
protected void |
updateSubscriptionIds()
check our messages and update subscription ids |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger logger
protected ArrayList<org.oasisOpen.docs.wsn.b2.TopicDocument> topics
protected ArrayList<String> subscriptionIds
| Constructor Detail |
|---|
public NotificationProducerSupport()
| Method Detail |
|---|
public org.oasisOpen.docs.wsn.b2.GetCurrentMessageResponseDocument GetCurrentMessage(org.oasisOpen.docs.wsn.b2.GetCurrentMessageDocument req)
throws BaseFault
GetCurrentMessage in interface NotificationProducerBaseFaultpublic String getProducerURL()
public void setProducerURL(String url)
public org.oasisOpen.docs.wsn.b2.SubscribeResponseDocument Subscribe(org.oasisOpen.docs.wsn.b2.SubscribeDocument req)
throws BaseFault
Subscribe in interface NotificationProducerBaseFaultpublic boolean deleteSubscription(String subscriptionID)
subscriptionID -
protected boolean acceptTopic(org.oasisOpen.docs.wsn.b2.FilterType f)
f -
public void postEvent(QName q,
org.apache.xmlbeans.XmlObject[] newValue)
q - public org.oasisOpen.docs.wsn.b2.FixedTopicSetDocument getFixedTopicSetDocument()
public org.oasisOpen.docs.wsn.b2.TopicExpressionDocument[] getTopicExpressionDocuments()
public org.oasisOpen.docs.wsn.b2.TopicExpressionDialectDocument getExpressionDialectDocument()
public void addSimpleTopic(QName q)
protected org.oasisOpen.docs.wsn.b2.NotificationMessageHolderType createMessage(ISubscription subscription,
Event e)
public void sendNotifications(org.oasisOpen.docs.wsn.b2.NotificationMessageHolderType[] messages,
org.oasisOpen.docs.wsn.b2.ConsumerReferenceDocument consumer,
String filter)
throws MessagingException
MessagingException
protected boolean passesMessageContentFilter(String mcd,
org.oasisOpen.docs.wsn.b2.NotificationMessageHolderType[] messages)
protected void updateSubscriptionIds()
public void notifyObservers()
protected org.oasisOpen.docs.wsn.b2.NotificationMessageHolderType createSimpleMessage(ISubscription subscription,
Event e)
subscription - q -
protected org.oasisOpen.docs.wsn.b2.NotificationMessageHolderType createRPValueChangeMessage(ISubscription subscription,
Event e)
subscription - - the subscriptione - - the event
public void setSubscriptionServiceName(String subscriptionServiceName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||