org.apache.synapse.eventing.builders
Class SubscriptionMessageBuilder

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

public class SubscriptionMessageBuilder
extends Object


Constructor Summary
SubscriptionMessageBuilder()
           
 
Method Summary
static SynapseSubscription createGetStatusMessage(MessageContext mc)
          (01) (06) (07) (08) http://schemas.xmlsoap.org/ws/2004/08/eventing/GetStatus (09) (10) (11) uuid:bd88b3df-5db4-4392-9621-aee9160721f6 (12) (13) (14) http://www.example.com/MyEventSink (15) (16) (17) http://www.example.org/oceanwatch/SubscriptionManager (18) (19) (20) uuid:22e8a584-0d18-4228-b2a8-3716fa2097fa (21) (22) (23) (24) (25) (26)
static SynapseSubscription createRenewSubscribeMessage(MessageContext mc)
          (01) (06) (07) (08) http://schemas.xmlsoap.org/ws/2004/08/eventing/Renew (09) (10) (11) uuid:bd88b3df-5db4-4392-9621-aee9160721f6 (12) (13) (14) http://www.example.com/MyEventSink (15) (16) (17) http://www.example.org/oceanwatch/SubscriptionManager (18) (19) (20) uuid:22e8a584-0d18-4228-b2a8-3716fa2097fa (21) (22) (23) (24) (25) 2004-06-26T21:07:00.000-08:00 (26) (27) (28)
static SynapseSubscription createSubscription(MessageContext mc)
          (01) (06) (07) (08) http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe (09) (10) (11) uuid:e1886c5c-5e86-48d1-8c77-fc1c28d47180 (12) (13) (14) http://www.example.com/MyEvEntsink (15) (16) 2597 (17) (18) (19) http://www.example.org/oceanwatch/EventSource (20) (21) (22) (23) (24) (25) http://www.example.com/MyEventSink (26) (27) (28) 2597 (29) (30) (31) (32) (33) (34) http://www.other.example.com/OnStormWarning (35) (36) (37) 2597 (38) (39) (40) (41) 2004-06-26T21:07:00.000-08:00 (42) (44) weather.storms (45) (46) (47) (48)
static SynapseSubscription createUnSubscribeMessage(MessageContext mc)
          create request for unsubscribr request (01) (06) (07) (08) http://schemas.xmlsoap.org/ws/2004/08/eventing/Unsubscribe (09) (10) (11) uuid:2653f89f-25bc-4c2a-a7c4-620504f6b216 (12) (13) (14) http://www.example.com/MyEventSink (15) (16) (17) http://www.example.org/oceanwatch/SubscriptionManager (18) (19) (20) uuid:22e8a584-0d18-4228-b2a8-3716fa2097fa (21) (22) (23) (24) (25) (26)
static String getErrorCode()
           
static String getErrorReason()
           
static String getErrorSubCode()
           
static void setErrorCode(String errorCodes)
           
static void setErrorReason(String errorReasons)
           
static void setErrorSubCode(String errorCode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscriptionMessageBuilder

public SubscriptionMessageBuilder()
Method Detail

createSubscription

public static SynapseSubscription createSubscription(MessageContext mc)
(01) (06) (07) (08) http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe (09) (10) (11) uuid:e1886c5c-5e86-48d1-8c77-fc1c28d47180 (12) (13) (14) http://www.example.com/MyEvEntsink (15) (16) 2597 (17) (18) (19) http://www.example.org/oceanwatch/EventSource (20) (21) (22) (23) (24) (25) http://www.example.com/MyEventSink (26) (27) (28) 2597 (29) (30) (31) (32) (33) (34) http://www.other.example.com/OnStormWarning (35) (36) (37) 2597 (38) (39) (40) (41) 2004-06-26T21:07:00.000-08:00 (42) (44) weather.storms (45) (46) (47) (48)

Parameters:
mc - The MessageContext from which to create the SynapseSubscription
Returns:
The SynapseSubscription

createUnSubscribeMessage

public static SynapseSubscription createUnSubscribeMessage(MessageContext mc)
create request for unsubscribr request (01) (06) (07) (08) http://schemas.xmlsoap.org/ws/2004/08/eventing/Unsubscribe (09) (10) (11) uuid:2653f89f-25bc-4c2a-a7c4-620504f6b216 (12) (13) (14) http://www.example.com/MyEventSink (15) (16) (17) http://www.example.org/oceanwatch/SubscriptionManager (18) (19) (20) uuid:22e8a584-0d18-4228-b2a8-3716fa2097fa (21) (22) (23) (24) (25) (26)

Parameters:
mc - The MessageContext from which to create the SynapseSubscription
Returns:
The SynapseSubscription

createRenewSubscribeMessage

public static SynapseSubscription createRenewSubscribeMessage(MessageContext mc)
(01) (06) (07) (08) http://schemas.xmlsoap.org/ws/2004/08/eventing/Renew (09) (10) (11) uuid:bd88b3df-5db4-4392-9621-aee9160721f6 (12) (13) (14) http://www.example.com/MyEventSink (15) (16) (17) http://www.example.org/oceanwatch/SubscriptionManager (18) (19) (20) uuid:22e8a584-0d18-4228-b2a8-3716fa2097fa (21) (22) (23) (24) (25) 2004-06-26T21:07:00.000-08:00 (26) (27) (28)

Parameters:
mc - MessageContext from which to create the SynapseSubscription
Returns:
The SynapseSubscription

createGetStatusMessage

public static SynapseSubscription createGetStatusMessage(MessageContext mc)
(01) (06) (07) (08) http://schemas.xmlsoap.org/ws/2004/08/eventing/GetStatus (09) (10) (11) uuid:bd88b3df-5db4-4392-9621-aee9160721f6 (12) (13) (14) http://www.example.com/MyEventSink (15) (16) (17) http://www.example.org/oceanwatch/SubscriptionManager (18) (19) (20) uuid:22e8a584-0d18-4228-b2a8-3716fa2097fa (21) (22) (23) (24) (25) (26)

Parameters:
mc - The MessageContext from which to extract the SynapseSubscription
Returns:
The SynapseSubscription

getErrorSubCode

public static String getErrorSubCode()

setErrorSubCode

public static void setErrorSubCode(String errorCode)

getErrorReason

public static String getErrorReason()

setErrorReason

public static void setErrorReason(String errorReasons)

getErrorCode

public static String getErrorCode()

setErrorCode

public static void setErrorCode(String errorCodes)


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