Class ResponseMessageBuilder


  • public class ResponseMessageBuilder
    extends Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ResponseMessageBuilder​(org.apache.axis2.context.MessageContext messageCtx)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.axiom.soap.SOAPEnvelope genFaultResponse​(org.apache.axis2.context.MessageContext messageCtx, String code, String subCode, String reason, String detail)
      http://schemas.xmlsoap.org/ws/2004/08/addressing/fault [Code] [Subcode] [Reason] [Detail]
      org.apache.axiom.soap.SOAPEnvelope genGetStatusResponse​(org.wso2.eventing.Subscription subscription)
      (01) (06) (07) (08) http://schemas.xmlsoap.org/ws/2004/08/eventing/GetStatusResponse (09) (10) (11) uuid:bd88b3df-5db4-4392-9621-aee9160721f6 (12) (13) http://www.example.com/MyEventSink (14) (15) (16) (17) 2004-06-26T12:00:00.000-00:00 (18) (19) (20)
      org.apache.axiom.soap.SOAPEnvelope genRenewSubscriptionResponse​(SynapseSubscription subscription)
      (01) (06) (07) (08) http://schemas.xmlsoap.org/ws/2004/08/eventing/RenewResponse (09) (10) (11) uuid:bd88b3df-5db4-4392-9621-aee9160721f6 (12) (13) http://www.example.com/MyEventSink (14) (15) (16) (17) 2004-06-26T12:00:00.000-00:00 (18) (19) (20)
      org.apache.axiom.soap.SOAPEnvelope genSubscriptionResponse​(SynapseSubscription subscription)
      (01) (07) (08) (09) http://schemas.xmlsoap.org/ws/2004/08/eventing/SubscribeResponse (10) (11) (12) uuid:e1886c5c-5e86-48d1-8c77-fc1c28d47180 (13) (14) http://www.example.com/MyEventSink (15) 2597 (16) (17) (18) (19) (20) (21) http://www.example.org/oceanwatch/SubscriptionManager (22) (23) (24) (25) uuid:22e8a584-0d18-4228-b2a8-3716fa2097fa (26) (27) (28) (29) 2004-07-01T00:00:00.000-00:00 (30) (31) (32) Generate the subscription responce message
      org.apache.axiom.soap.SOAPEnvelope genUnSubscribeResponse​(SynapseSubscription subscription)
      (01) (04) (05) (06) http://schemas.xmlsoap.org/ws/2004/08/eventing/UnsubscribeResponse (07) (08) (09) uuid:2653f89f-25bc-4c2a-a7c4-620504f6b216 (10) (11) http://www.example.com/MyEventSink (12) (13) (14)
    • Constructor Detail

      • ResponseMessageBuilder

        public ResponseMessageBuilder​(org.apache.axis2.context.MessageContext messageCtx)
    • Method Detail

      • genSubscriptionResponse

        public org.apache.axiom.soap.SOAPEnvelope genSubscriptionResponse​(SynapseSubscription subscription)
        (01) (07) (08) (09) http://schemas.xmlsoap.org/ws/2004/08/eventing/SubscribeResponse (10) (11) (12) uuid:e1886c5c-5e86-48d1-8c77-fc1c28d47180 (13) (14) http://www.example.com/MyEventSink (15) 2597 (16) (17) (18) (19) (20) (21) http://www.example.org/oceanwatch/SubscriptionManager (22) (23) (24) (25) uuid:22e8a584-0d18-4228-b2a8-3716fa2097fa (26) (27) (28) (29) 2004-07-01T00:00:00.000-00:00 (30) (31) (32) Generate the subscription responce message
        Parameters:
        subscription -
        Returns:
      • genUnSubscribeResponse

        public org.apache.axiom.soap.SOAPEnvelope genUnSubscribeResponse​(SynapseSubscription subscription)
        (01) (04) (05) (06) http://schemas.xmlsoap.org/ws/2004/08/eventing/UnsubscribeResponse (07) (08) (09) uuid:2653f89f-25bc-4c2a-a7c4-620504f6b216 (10) (11) http://www.example.com/MyEventSink (12) (13) (14)
        Parameters:
        subscription -
        Returns:
      • genRenewSubscriptionResponse

        public org.apache.axiom.soap.SOAPEnvelope genRenewSubscriptionResponse​(SynapseSubscription subscription)
        (01) (06) (07) (08) http://schemas.xmlsoap.org/ws/2004/08/eventing/RenewResponse (09) (10) (11) uuid:bd88b3df-5db4-4392-9621-aee9160721f6 (12) (13) http://www.example.com/MyEventSink (14) (15) (16) (17) 2004-06-26T12:00:00.000-00:00 (18) (19) (20)
        Parameters:
        subscription -
        Returns:
      • genGetStatusResponse

        public org.apache.axiom.soap.SOAPEnvelope genGetStatusResponse​(org.wso2.eventing.Subscription subscription)
        (01) (06) (07) (08) http://schemas.xmlsoap.org/ws/2004/08/eventing/GetStatusResponse (09) (10) (11) uuid:bd88b3df-5db4-4392-9621-aee9160721f6 (12) (13) http://www.example.com/MyEventSink (14) (15) (16) (17) 2004-06-26T12:00:00.000-00:00 (18) (19) (20)
        Parameters:
        subscription -
        Returns:
      • genFaultResponse

        public org.apache.axiom.soap.SOAPEnvelope genFaultResponse​(org.apache.axis2.context.MessageContext messageCtx,
                                                                   String code,
                                                                   String subCode,
                                                                   String reason,
                                                                   String detail)
        http://schemas.xmlsoap.org/ws/2004/08/addressing/fault [Code] [Subcode] [Reason] [Detail]
        Parameters:
        code -
        subCode -
        reason -
        detail -
        Returns: