cgl.narada.wsinfra.wse
Interface WseResponseCreator

All Known Implementing Classes:
WseResponseCreatorImpl

public interface WseResponseCreator

This is a utility class which create various responses based on the specified parameters. This is typically used by the source and the subscriptionManager.


Method Summary
 EnvelopeDocument createGetStatusResponse(EndpointReferenceType sinkEpr, EndpointReferenceType subscriptionManagerEpr, RelatesToDocument relatesTo, GetStatusResponseDocument getStatusResponseDocument)
          Create the SOAP envelope with the specified getStatus response.
 EnvelopeDocument createRenewResponse(EndpointReferenceType sinkEpr, EndpointReferenceType subscriptionManagerEpr, RelatesToDocument relatesTo, RenewResponseDocument renewResponseDocument)
          Create the SOAP envelope with the specified renew response.
 EnvelopeDocument createRenewResponseToSource(EndpointReferenceType sourceEpr, EndpointReferenceType subscriptionManagerEpr, String subscriptionIdentifier, RenewResponseDocument renewResponseDocument)
          Create the SOAP envelope with the specified renew response.
 EnvelopeDocument createSubscribeResponse(EndpointReferenceType sinkEpr, EndpointReferenceType sourceEpr, RelatesToDocument relatesTo, SubscribeResponseDocument subscribeResponseDocument)
          Create the SOAP envelope with the specified subscribe response.
 EnvelopeDocument createSubscribeResponseToSM(EndpointReferenceType subscriptionManagerEpr, EndpointReferenceType sourceEpr, SubscribeDocument subscribeDocument, SubscribeResponseDocument subResponseDocument)
          Create the SOAP envelope with the specified subscribe response AND the subscribe original request.
 EnvelopeDocument createSubscriptionEnd(EndpointReferenceType destinationEpr, EndpointReferenceType sourceEpr, SubscriptionEndDocument subscriptionEndDocument)
          Creates a SOAP envelope with the subscription end document
 EnvelopeDocument createUnsubscribeResponse(EndpointReferenceType sinkEpr, EndpointReferenceType subscriptionManagerEpr, RelatesToDocument relatesTo)
          Create the SOAP envelope with the specified getStatus response.
 EnvelopeDocument createUnsubscribeResponseToSource(EndpointReferenceType sourceEpr, EndpointReferenceType subscriptionMgrEpr, String subscriptionIdentifier)
          Create the SOAP envelope with the specified getStatus response.
 RelatesToDocument getResponseRelatesTo(AddressingHeaders requestHeaders)
          Initializes the relates to element appropriately, based on whether there is a messageID in the requestHeaders.
 EndpointReferenceType getSendResponseTo(AddressingHeaders requestHeaders, EndpointReferenceType alternateEPR, String requestType)
          Try and the initialize the EPR to send a response message to.
 

Method Detail

createSubscribeResponse

EnvelopeDocument createSubscribeResponse(EndpointReferenceType sinkEpr,
                                         EndpointReferenceType sourceEpr,
                                         RelatesToDocument relatesTo,
                                         SubscribeResponseDocument subscribeResponseDocument)
                                         throws ProcessingException
Create the SOAP envelope with the specified subscribe response. This envelope's destination is the Sink which generated the original request message.

Throws:
ProcessingException

createSubscribeResponseToSM

EnvelopeDocument createSubscribeResponseToSM(EndpointReferenceType subscriptionManagerEpr,
                                             EndpointReferenceType sourceEpr,
                                             SubscribeDocument subscribeDocument,
                                             SubscribeResponseDocument subResponseDocument)
                                             throws ProcessingException
Create the SOAP envelope with the specified subscribe response AND the subscribe original request. This envelope's destination is the SubscriptionManager for the source in question.

Throws:
ProcessingException

createRenewResponse

EnvelopeDocument createRenewResponse(EndpointReferenceType sinkEpr,
                                     EndpointReferenceType subscriptionManagerEpr,
                                     RelatesToDocument relatesTo,
                                     RenewResponseDocument renewResponseDocument)
                                     throws ProcessingException
Create the SOAP envelope with the specified renew response. This envelope's destination is the sink which originated the message.

Throws:
ProcessingException

createRenewResponseToSource

EnvelopeDocument createRenewResponseToSource(EndpointReferenceType sourceEpr,
                                             EndpointReferenceType subscriptionManagerEpr,
                                             String subscriptionIdentifier,
                                             RenewResponseDocument renewResponseDocument)
                                             throws ProcessingException
Create the SOAP envelope with the specified renew response. This envelope's destination is the source which notify's the relevant sink.

Throws:
ProcessingException

createGetStatusResponse

EnvelopeDocument createGetStatusResponse(EndpointReferenceType sinkEpr,
                                         EndpointReferenceType subscriptionManagerEpr,
                                         RelatesToDocument relatesTo,
                                         GetStatusResponseDocument getStatusResponseDocument)
                                         throws ProcessingException
Create the SOAP envelope with the specified getStatus response. This envelope's destination is the sink which originated the message.

Throws:
ProcessingException

createUnsubscribeResponse

EnvelopeDocument createUnsubscribeResponse(EndpointReferenceType sinkEpr,
                                           EndpointReferenceType subscriptionManagerEpr,
                                           RelatesToDocument relatesTo)
                                           throws ProcessingException
Create the SOAP envelope with the specified getStatus response. This envelope's destination is the sink which originated the message.

Throws:
ProcessingException

createUnsubscribeResponseToSource

EnvelopeDocument createUnsubscribeResponseToSource(EndpointReferenceType sourceEpr,
                                                   EndpointReferenceType subscriptionMgrEpr,
                                                   String subscriptionIdentifier)
                                                   throws ProcessingException
Create the SOAP envelope with the specified getStatus response. This envelope's destination is the source for the sink in question.

Throws:
ProcessingException

createSubscriptionEnd

EnvelopeDocument createSubscriptionEnd(EndpointReferenceType destinationEpr,
                                       EndpointReferenceType sourceEpr,
                                       SubscriptionEndDocument subscriptionEndDocument)
                                       throws ProcessingException
Creates a SOAP envelope with the subscription end document

Throws:
ProcessingException

getSendResponseTo

EndpointReferenceType getSendResponseTo(AddressingHeaders requestHeaders,
                                        EndpointReferenceType alternateEPR,
                                        String requestType)
                                        throws ProcessingException
Try and the initialize the EPR to send a response message to. This is typically used to initialize the [wsa:To] element. The addressing headers that are passed here are the headers that were constructed based on the original request that came in previously. So this method will look for the [wsa:ReplyTo] or [wsa:From] elements to construct the responses.

Throws:
ProcessingException

getResponseRelatesTo

RelatesToDocument getResponseRelatesTo(AddressingHeaders requestHeaders)
Initializes the relates to element appropriately, based on whether there is a messageID in the requestHeaders. This will return a NULL if there is no MessageID within the AddressingHeaders.



For comments and suggestions please send e-mail to The NaradaBrokering Project
font size=2>For comments and suggestions please send e-mail to The NaradaBrokering Project
HTML>