cgl.narada.wsinfra.messaging.entity.wse
Class WsePublisher

java.lang.Object
  extended by cgl.narada.wsinfra.messaging.wse.WseFrameworkIndicator
      extended by cgl.narada.wsinfra.messaging.entity.wse.WseEntity
          extended by cgl.narada.wsinfra.messaging.entity.wse.WsePublisher
All Implemented Interfaces:
MessagingEntity, Publisher, FrameworkIndicator

public class WsePublisher
extends WseEntity
implements Publisher


Constructor Summary
WsePublisher(EndpointReferenceType sourceEPR, EndpointReferenceType subscriptionManagerEPR)
           
 
Method Summary
 void addTopicInfo(EnvelopeDocument envelopeDocument, String topic)
          Adds Topic information to a notification message.
 void addTopicInfo(SOAPMessage soapMessage, String topic)
          Adds Topic information to a notification message.
 Enumeration getListOfSubscriptionIdentifiers()
          Retrieve the list of subscriptions registered at a Publisher.
 PublisherDefaults getPublisherDefaults()
          Retrieve defaults associated with this publisher.
 PublisherWithSubscriber getSubscriberInteractions()
          Retrieves the SubscriberInteractions which allows a publisher to communicate with a specific Subscriber.
 Subscription getSubscription(String subscriptionIdentifier)
          Retrieve the subscription associated with a subscription identifier.
 EndpointReferenceType getSubscriptionManagerEPR()
          Retrieve the EPR associated with the Subscription Manager.
 void publish(EnvelopeDocument envelopeDocument)
          This method is used to publish an EnvelopeDocument.
 void publish(SOAPMessage soapMessage)
          This method is used to publish a SOAP message.
 
Methods inherited from class cgl.narada.wsinfra.messaging.entity.wse.WseEntity
getEndpointReference, setEndpointReference
 
Methods inherited from class cgl.narada.wsinfra.messaging.wse.WseFrameworkIndicator
getProvider, getSpecVersion, isEventing, isNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cgl.narada.wsinfra.messaging.entity.MessagingEntity
getEndpointReference
 
Methods inherited from interface cgl.narada.wsinfra.messaging.FrameworkIndicator
getProvider, getSpecVersion, isEventing, isNotification
 

Constructor Detail

WsePublisher

public WsePublisher(EndpointReferenceType sourceEPR,
                    EndpointReferenceType subscriptionManagerEPR)
             throws DeploymentException
Throws:
DeploymentException
Method Detail

publish

public void publish(SOAPMessage soapMessage)
             throws ProcessingException,
                    MessageFlowException
Description copied from interface: Publisher
This method is used to publish a SOAP message. The destination is retrieved by parsing for the element.

Specified by:
publish in interface Publisher
Parameters:
soapMessage - The SOAPMessage that is being published.
Throws:
ProcessingException - If there are problems with this SOAPMessage.
MessageFlowException - If there are networking problems which prevent this message from being routed.
See Also:
Publisher.publish(javax.xml.soap.SOAPMessage)

publish

public void publish(EnvelopeDocument envelopeDocument)
             throws ProcessingException,
                    MessageFlowException
Description copied from interface: Publisher
This method is used to publish an EnvelopeDocument. The destination is retrieved by parsing for the element.

Specified by:
publish in interface Publisher
Parameters:
envelopeDocument - The EnvelopeDocument that is being published.
Throws:
ProcessingException - If there are problems with this EnvelopeDocument
MessageFlowException - If there are networking problems which prevent this message from being routed.
See Also:
Publisher.publish(cgl.narada.wsinfra.schemas.soap.EnvelopeDocument)

addTopicInfo

public void addTopicInfo(EnvelopeDocument envelopeDocument,
                         String topic)
                  throws ProcessingException
Description copied from interface: Publisher
Adds Topic information to a notification message.

Specified by:
addTopicInfo in interface Publisher
Parameters:
envelopeDocument - The EnvelopeDocument that is being published.
topic - The Topic associated with the notification.
Throws:
ProcessingException - If there are problems with this EnvelopeDocument
See Also:
Publisher.addTopicInfo(cgl.narada.wsinfra.schemas.soap.EnvelopeDocument, java.lang.String)

addTopicInfo

public void addTopicInfo(SOAPMessage soapMessage,
                         String topic)
                  throws ProcessingException
Description copied from interface: Publisher
Adds Topic information to a notification message.

Specified by:
addTopicInfo in interface Publisher
Parameters:
soapMessage - The SOAPMessage that is being published.
topic - The Topic associated with the notification.
Throws:
ProcessingException - If there are problems with this EnvelopeDocument
See Also:
Publisher.addTopicInfo(javax.xml.soap.SOAPMessage, java.lang.String)

getSubscriberInteractions

public PublisherWithSubscriber getSubscriberInteractions()
Description copied from interface: Publisher
Retrieves the SubscriberInteractions which allows a publisher to communicate with a specific Subscriber.

Specified by:
getSubscriberInteractions in interface Publisher
Returns:
SubscriberInteractions
See Also:
Publisher.getSubscriberInteractions()

getPublisherDefaults

public PublisherDefaults getPublisherDefaults()
Description copied from interface: Publisher
Retrieve defaults associated with this publisher.

Specified by:
getPublisherDefaults in interface Publisher
Returns:
PublisherDefaults
See Also:
Publisher.getPublisherDefaults()

getListOfSubscriptionIdentifiers

public Enumeration getListOfSubscriptionIdentifiers()
Description copied from interface: Publisher
Retrieve the list of subscriptions registered at a Publisher.

Specified by:
getListOfSubscriptionIdentifiers in interface Publisher
Returns:
Enumeration of the list of subscription identifiers
See Also:
Publisher.getListOfSubscriptionIdentifiers()

getSubscription

public Subscription getSubscription(String subscriptionIdentifier)
                             throws ProcessingException
Description copied from interface: Publisher
Retrieve the subscription associated with a subscription identifier.

Specified by:
getSubscription in interface Publisher
Parameters:
subscriptionIdentifier - The ID of subscription in question
Returns:
The Subscription widget which snapshots the subscription
Throws:
ProcessingException - If there are problems with the specified subscriptionIdentifier.
See Also:
Publisher.getSubscription(java.lang.String)

getSubscriptionManagerEPR

public EndpointReferenceType getSubscriptionManagerEPR()
Description copied from interface: Publisher
Retrieve the EPR associated with the Subscription Manager.

Specified by:
getSubscriptionManagerEPR in interface Publisher
Returns:
subscriptionManagerEPR
See Also:
Publisher.getSubscriptionManagerEPR()


For comments and suggestions please send e-mail to The NaradaBrokering Project