00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef SAVAN_CONSTANTS_H
00018 #define SAVAN_CONSTANTS_H
00019
00020 #include <axis2_conf.h>
00021
00022 #ifdef __cplusplus
00023 extern "C"
00024 {
00025 #endif
00026
00033
00034 typedef enum savan_message_types
00035 {
00036 SAVAN_MSG_TYPE_UNKNOWN = 0,
00037 SAVAN_MSG_TYPE_SUB,
00038 SAVAN_MSG_TYPE_SUB_RESPONSE,
00039 SAVAN_MSG_TYPE_UNSUB,
00040 SAVAN_MSG_TYPE_UNSUB_RESPONSE,
00041 SAVAN_MSG_TYPE_RENEW,
00042 SAVAN_MSG_TYPE_RENEW_RESPONSE,
00043 SAVAN_MSG_TYPE_GET_STATUS,
00044 SAVAN_MSG_TYPE_GET_STATUS_RESPONSE
00045 } savan_message_types_t;
00046
00047 typedef struct savan_subs_mgr_info
00048 {
00049 axis2_char_t *url;
00050 axis2_char_t *name;
00051 axutil_hash_t *list;
00052 axis2_svc_t *svc;
00053 axis2_conf_t *conf;
00054 axutil_env_t *env;
00055 void *svc_client;
00056 }savan_subs_mgr_info_t;
00057
00058
00059 #define SAVAN_ACTIONS_SUB "http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe"
00060 #define SAVAN_ACTIONS_SUB_RESPONSE "http://schemas.xmlsoap.org/ws/2004/08/eventing/SubscribeResponse"
00061 #define SAVAN_ACTIONS_UNSUB "http://schemas.xmlsoap.org/ws/2004/08/eventing/Unsubscribe"
00062 #define SAVAN_ACTIONS_UNSUB_RESPONSE "http://schemas.xmlsoap.org/ws/2004/08/eventing/UnsubscribeResponse"
00063 #define SAVAN_ACTIONS_RENEW "http://schemas.xmlsoap.org/ws/2004/08/eventing/Renew"
00064 #define SAVAN_ACTIONS_RENEW_RESPONSE "http://schemas.xmlsoap.org/ws/2004/08/eventing/RenewResponse"
00065 #define SAVAN_ACTIONS_GET_STATUS "http://schemas.xmlsoap.org/ws/2004/08/eventing/GetStatus"
00066 #define SAVAN_ACTIONS_GET_STATUS_RESPONSE "http://schemas.xmlsoap.org/ws/2004/08/eventing/GetStatusResponse"
00067 #define SAVAN_ACTIONS_FAULT "http://schemas.xmlsoap.org/ws/2004/08/addressing/fault"
00068
00069 #define EVENTING_NAMESPACE "http://schemas.xmlsoap.org/ws/2004/08/eventing"
00070 #define EVENTING_NS_PREFIX "wse"
00071
00072 #define SAVAN_NAMESPACE "tcp://ws.apache.org/axis2/services/subscription"
00073 #define SAVAN_NS_PREFIX "savan"
00074 #define ELEM_NAME_SUBSCRIBERS "Subscribers"
00075 #define ELEM_NAME_SUBSCRIBER "Subscriber"
00076 #define ELEM_NAME_GET_SUBSCRIBER_LIST "get_subscriber_list"
00077 #define ELEM_NAME_GET_SUBSCRIBER "get_subscriber"
00078 #define ELEM_NAME_SUBSCRIBER_ID "SubscriberId"
00079 #define ELEM_NAME_ADD_SUBSCRIBER "AddSubscriber"
00080 #define ELEM_NAME_REMOVE_SUBSCRIBER "RemoveSubscriber"
00081 #define ELEM_NAME_TOPIC "Topic"
00082 #define ELEM_NAME_TOPICS "Topics"
00083 #define ELEM_NAME_GET_TOPIC_LIST "get_topic_list"
00084 #define ELEM_NAME_ADD_TOPIC "AddTopic"
00085 #define ELEM_NAME_REMOVE_TOPIC "RemoveTopic"
00086 #define DEFAULT_DELIVERY_MODE "http://schemas.xmlsoap.org/ws/2004/08/eventing/DeliveryModes/Push"
00087 #define DEFAULT_FILTER_DIALECT "http://www.w3.org/TR/1999/REC-xpath-19991116"
00088
00089
00090 #define ELEM_NAME_SUBSCRIBE "Subscribe"
00091 #define ELEM_NAME_SUB_RESPONSE "SubscribeResponse"
00092 #define ELEM_NAME_RENEW "Renew"
00093 #define ELEM_NAME_RENEW_RESPONSE "RenewResponse"
00094 #define ELEM_NAME_UNSUB "Unsubscribe"
00095 #define ELEM_NAME_UNSUB_RESPONSE "UnsubscribeResponse"
00096 #define ELEM_NAME_GETSTATUS "GetStatus"
00097 #define ELEM_NAME_GETSTATUS_RESPONSE "GetStatusResponse"
00098 #define ELEM_NAME_ENDTO "EndTo"
00099 #define ELEM_NAME_DELIVERY "Delivery"
00100 #define ELEM_NAME_MODE "Mode"
00101 #define ELEM_NAME_NOTIFYTO "NotifyTo"
00102 #define ELEM_NAME_EXPIRES "Expires"
00103 #define ELEM_NAME_FILTER "Filter"
00104 #define ELEM_NAME_ADDR "Address"
00105 #define ELEM_NAME_REF_PARAM "ReferenceParameter"
00106 #define ELEM_NAME_ID "Identifier"
00107 #define ELEM_NAME_SUB_MGR "SubscriptionManager"
00108 #define SAVAN_IN_HANDLER "SavanInHandler"
00109 #define SAVAN_OUT_HANDLER "SavanOutHandler"
00110
00111
00112 #define SAVAN_OP_KEY_ENDTO_EPR "savan_op_key_endto"
00113 #define SAVAN_OP_KEY_DELIVERY_MODE "savan_op_key_del_mode"
00114 #define SAVAN_OP_KEY_NOTIFY_EPR "savan_op_key_notify"
00115 #define SAVAN_OP_KEY_SUB_ID "savan_op_key_sub_id"
00116 #define SAVAN_OP_KEY_EXPIRES "savan_op_key_expires"
00117 #define SAVAN_OP_KEY_FILTER "savan_op_key_filter"
00118 #define SAVAN_OP_KEY_FILTER_DIALECT "savan_op_key_filter_dialect"
00119
00120
00121 #define SAVAN_KEY_SUB_ID "savan_key_subscriber_id"
00122 #define SAVAN_SUBSCRIBER_LIST "savan_subs_list"
00123 #define SAVAN_SUBSCRIBER "savan_subscriber"
00124 #define SAVAN_TOPIC_LIST "savan_topic_list"
00125 #define SAVAN_DB "savan_db"
00126
00128 #ifdef __cplusplus
00129 }
00130 #endif
00131
00132 #endif