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