cgl.narada.wsinfra.wse.impl
Class WseRequestCreatorImpl

java.lang.Object
  extended bycgl.narada.wsinfra.wse.impl.WseRequestCreatorImpl
All Implemented Interfaces:
WseRequestCreator

public class WseRequestCreatorImpl
extends Object
implements WseRequestCreator

This is a utility class which is used to create requests based on the specified parameters. The requests created by this utility class include

  • Subscribe
  • GetStatus
  • Renew
  • Unsubscribe


    Method Summary
     EnvelopeDocument createGetStatus(EndpointReferenceType subscriptionManagerEpr, EndpointReferenceType sinkEpr, GetStatusDocument getStatusDocument)
              Create the SOAP envelope with the specified getStatus request.
     EnvelopeDocument createRenew(EndpointReferenceType subscriptionManagerEpr, EndpointReferenceType sinkEpr, RenewDocument renewDocument)
              Create the SOAP envelope with the specified renew request.
     EnvelopeDocument createSubscribe(EndpointReferenceType sourceEpr, EndpointReferenceType sinkEpr, SubscribeDocument subscribeDocument)
              Create the SOAP envelope with the specified subscribe request.
     EnvelopeDocument createUnsubscribe(EndpointReferenceType subscriptionManagerEpr, EndpointReferenceType sinkEpr)
              Create the SOAP envelope with the specified getStatus request.
    static WseRequestCreator getInstance()
               
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Method Detail

    getInstance

    public static WseRequestCreator getInstance()

    createSubscribe

    public EnvelopeDocument createSubscribe(EndpointReferenceType sourceEpr,
                                            EndpointReferenceType sinkEpr,
                                            SubscribeDocument subscribeDocument)
                                     throws ProcessingException
    Create the SOAP envelope with the specified subscribe request. This envelope's destination is the Sink which generated the original request message.

    Specified by:
    createSubscribe in interface WseRequestCreator
    Throws:
    ProcessingException

    createRenew

    public EnvelopeDocument createRenew(EndpointReferenceType subscriptionManagerEpr,
                                        EndpointReferenceType sinkEpr,
                                        RenewDocument renewDocument)
                                 throws ProcessingException
    Create the SOAP envelope with the specified renew request. This envelope's destination is the sink which originated the message.

    Specified by:
    createRenew in interface WseRequestCreator
    Throws:
    ProcessingException

    createGetStatus

    public EnvelopeDocument createGetStatus(EndpointReferenceType subscriptionManagerEpr,
                                            EndpointReferenceType sinkEpr,
                                            GetStatusDocument getStatusDocument)
                                     throws ProcessingException
    Create the SOAP envelope with the specified getStatus request. This envelope's destination is the sink which originated the message.

    Specified by:
    createGetStatus in interface WseRequestCreator
    Throws:
    ProcessingException

    createUnsubscribe

    public EnvelopeDocument createUnsubscribe(EndpointReferenceType subscriptionManagerEpr,
                                              EndpointReferenceType sinkEpr)
                                       throws ProcessingException
    Create the SOAP envelope with the specified getStatus request. This envelope's destination is the sink which originated the message.

    Specified by:
    createUnsubscribe in interface WseRequestCreator
    Throws:
    ProcessingException