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 #include <axis2_conf.h>
00021 
00022 #ifdef __cplusplus
00023 extern "C"
00024 {
00025 #endif
00026 
00033 /* Eventing message types */
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 /* Eventing actions */
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 #define ADDRESSING_NS_PREFIX "wsa"
00072 /*#define SAVAN_NAMESPACE "http://ws.apache.org/savan"*/
00073 #define SAVAN_NAMESPACE "http://ws.apache.org/axis2/services/subscription"
00074 #define SAVAN_NS_PREFIX "savan"
00075 #define ELEM_NAME_SUBSCRIBERS "Subscribers"
00076 #define ELEM_NAME_SUBSCRIBER "Subscriber"
00077 #define ELEM_NAME_GET_SUBSCRIBER_LIST "get_subscriber_list"
00078 #define ELEM_NAME_GET_SUBSCRIBER "get_subscriber"
00079 #define ELEM_NAME_SUBSCRIBER_ID "SubscriberId"
00080 #define ELEM_NAME_ADD_SUBSCRIBER "AddSubscriber"
00081 #define ELEM_NAME_REMOVE_SUBSCRIBER "RemoveSubscriber"
00082 #define ELEM_NAME_TOPIC "Topic"
00083 #define ELEM_NAME_TOPICS "Topics"
00084 #define ELEM_NAME_GET_TOPIC_LIST "get_topic_list"
00085 #define ELEM_NAME_ADD_TOPIC "AddTopic"
00086 #define ELEM_NAME_REMOVE_TOPIC "RemoveTopic"
00087 #define DEFAULT_DELIVERY_MODE "http://schemas.xmlsoap.org/ws/2004/08/eventing/DeliveryModes/Push"
00088 #define XPATH_FILTER_DIALECT "http://www.w3.org/TR/1999/REC-xpath-19991116"
00089 #define SYNAPSE_FILTER_DIALECT "http://synapse.apache.org/eventing/dialect/topicFilter"
00090 #define DEFAULT_FILTER_DIALECT "http://www.w3.org/TR/1999/REC-xpath-19991116"
00091 
00092 /* Eventing element names */
00093 #define ELEM_NAME_SUBSCRIBE             "Subscribe"
00094 #define ELEM_NAME_SUB_RESPONSE          "SubscribeResponse"
00095 #define ELEM_NAME_RENEW                 "Renew"
00096 #define ELEM_NAME_RENEW_RESPONSE        "RenewResponse"
00097 #define ELEM_NAME_UNSUB                 "Unsubscribe"
00098 #define ELEM_NAME_UNSUB_RESPONSE        "UnsubscribeResponse"
00099 #define ELEM_NAME_GETSTATUS             "GetStatus"
00100 #define ELEM_NAME_GETSTATUS_RESPONSE    "GetStatusResponse"
00101 #define ELEM_NAME_ENDTO                 "EndTo"
00102 #define ELEM_NAME_DELIVERY              "Delivery"
00103 #define ELEM_NAME_MODE                  "Mode"
00104 #define ELEM_NAME_NOTIFYTO              "NotifyTo"
00105 #define ELEM_NAME_EXPIRES               "Expires"
00106 #define ELEM_NAME_FILTER                "Filter"
00107 #define ELEM_NAME_ADDR                  "Address"
00108 #define ELEM_NAME_REF_PARAM             "ReferenceParameters"
00109 #define ELEM_NAME_ID                    "Identifier"
00110 #define ELEM_NAME_SUB_MGR               "SubscriptionManager"
00111 #define SAVAN_IN_HANDLER                "SavanInHandler"
00112 #define SAVAN_OUT_HANDLER               "SavanOutHandler"
00113 
00114 /* Keys to set options on the client side */
00115 #define SAVAN_OP_KEY_ENDTO_EPR      "savan_op_key_endto"
00116 #define SAVAN_OP_KEY_DELIVERY_MODE  "savan_op_key_del_mode"
00117 #define SAVAN_OP_KEY_NOTIFY_EPR     "savan_op_key_notify"
00118 #define SAVAN_OP_KEY_SUB_ID         "savan_op_key_sub_id"
00119 #define SAVAN_OP_KEY_EXPIRES        "savan_op_key_expires"
00120 #define SAVAN_OP_KEY_FILTER         "savan_op_key_filter"
00121 #define SAVAN_OP_KEY_FILTER_DIALECT "savan_op_key_filter_dialect"
00122 
00123 
00124 #define SAVAN_KEY_SUB_ID            "savan_key_subscriber_id"
00125 #define SAVAN_SUBSCRIBER_LIST       "savan_subs_list"
00126 #define SAVAN_SUBSCRIBER       "savan_subscriber"
00127 #define SAVAN_TOPIC_LIST       "savan_topic_list"
00128 #define SAVAN_RESOURCE "savan_resource"
00129 #define SAVAN_RESOURCE_USERNAME "username"
00130 #define SAVAN_RESOURCE_PASSWORD "password"
00131 #define SAVAN_MODULE  "savan"
00132 #define SAVAN_TOPIC_URL  "TopicURL"
00133 #define SAVAN_SUBSCRIPTION_MGR_URL  "SubscriptionMgrURL"
00134 #define SAVAN_SVC_CLIENT  "svc_client"
00135 #define SAVAN_FILTER_TEMPLATE_PATH  "savan_filter_template_path"
00136 #define SAVAN_FILTER_DIALECT "Dialect"
00137 #define SAVAN_SUBSCRIPTION_MANAGER "subscription"
00138 #define SAVAN_STORAGE_MANAGER "storage_mgr"
00139 #define SAVAN_PUBLISHER "publisher"
00140 #define SAVAN_FILTER "filter"
00141 #define SAVAN_SQLITE  "sqlite"
00142 #define SAVAN_INMEMORY_STORAGE  "inmemory"
00143 #define SAVAN_SERVICE_STORAGE  "service"
00144 #define SAVAN_REGISTRY_STORAGE  "registry"
00145 #define SAVAN_MESSAGE_RECEIVER  "savan_msgreceivers"
00146 
00147 #define SAVAN_SUBS_MGR_ADD_SUBSCRIBER_URL "http://ws.apache.org/axis2/c/subscription/add_subscriber"
00148 #define SAVAN_SUBS_MGR_GET_SUBSCRIBER_URL "http://ws.apache.org/axis2/c/subscription/add_subscriber"
00149 #define SAVAN_SUBS_MGR_GET_SUBSCRIBER_LIST_URL "http://ws.apache.org/axis2/c/subscription/add_subscriber"
00150 #define SAVAN_SUBS_MGR_REMOVE_SUBSCRIBER_URL "http://ws.apache.org/axis2/c/subscription/add_subscriber"
00151 
00153 #ifdef __cplusplus
00154 }
00155 #endif
00156 
00157 #endif /*SAVAN_CONSTANTS_H*/

Generated on Wed Oct 14 01:02:18 2009 for Savan/C by  doxygen 1.5.7.1