savan_constants.h

00001 /*
00002  * Copyright 2004,2005 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #ifndef SAVAN_CONSTANTS_H
00018 #define SAVAN_CONSTANTS_H
00019 
00020 #ifdef __cplusplus
00021 extern "C"
00022 {
00023 #endif
00024 
00031 /* Eventing message types */
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 /* Eventing actions */
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 /*#define SAVAN_NAMESPACE "http://ws.apache.org/savan"*/
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 /* Eventing element names */
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 /* Keys to set options on the client side */
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 /*SAVAN_CONSTANTS_H*/

Generated on Sun Oct 7 14:37:10 2007 for Savan/C by  doxygen 1.5.1