org.apache.synapse.eventing.builders
Class ResponseMessageBuilder

java.lang.Object
  extended by org.apache.synapse.eventing.builders.ResponseMessageBuilder

public class ResponseMessageBuilder
extends Object


Constructor Summary
ResponseMessageBuilder(MessageContext messageCtx)
           
 
Method Summary
 SOAPEnvelope genFaultResponse(MessageContext messageCtx, String code, String subCode, String reason, String detail)
           http://schemas.xmlsoap.org/ws/2004/08/addressing/fault
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseMessageBuilder

public ResponseMessageBuilder(MessageContext messageCtx)
Method Detail

genSubscriptionResponse

public 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 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 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 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 SOAPEnvelope genFaultResponse(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:


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.