sandesha2_utils.h

Go to the documentation of this file.
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 SANDESHA2_UTILS_H
00018 #define SANDESHA2_UTILS_H
00019 
00020 #include <axiom_soap_envelope.h>
00021 
00027 #include <sandesha2_storage_mgr.h>
00028 #include <axis2_conf_ctx.h>
00029 #include <axis2_conf.h>
00030 #include <axiom_soap_envelope.h>
00031 #include <axutil_qname.h>
00032 #include <axutil_array_list.h>
00033 #include <axis2_op.h>
00034 #include <sandesha2_property_bean.h>
00035 #include <sandesha2_msg_ctx.h>
00036 
00037 #ifdef __cplusplus
00038 extern "C"
00039 {
00040 #endif
00041 
00046 /* Array list types */
00047 #define SANDESHA2_ARRAY_LIST_STRING 0
00048 #define SANDESHA2_ARRAY_LIST_LONG 1
00049 
00050 
00051 AXIS2_EXTERN long AXIS2_CALL
00052 sandesha2_utils_get_current_time_in_millis(
00053     const axutil_env_t *env);
00054 
00055 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00056 sandesha2_utils_remove_soap_body_part(
00057     const axutil_env_t *env, 
00058     axiom_soap_envelope_t *envelope, 
00059     axutil_qname_t *qname);
00060                         
00061 AXIS2_EXTERN axis2_char_t* AXIS2_CALL
00062 sandesha2_utils_get_rm_version(
00063     const axutil_env_t *env,
00064     axis2_char_t *key,
00065     sandesha2_storage_mgr_t *storage_man);
00066                         
00067 AXIS2_EXTERN sandesha2_storage_mgr_t* AXIS2_CALL
00068 sandesha2_utils_get_storage_mgr(
00069     const axutil_env_t *env,
00070     axis2_conf_ctx_t *conf_ctx,
00071     axis2_conf_t *conf);
00072                         
00073 AXIS2_EXTERN axis2_char_t* AXIS2_CALL
00074 sandesha2_utils_get_seq_property(
00075     const axutil_env_t *env,
00076     axis2_char_t *id,
00077     axis2_char_t *name,
00078     sandesha2_storage_mgr_t *storage_man);
00079 
00080 AXIS2_EXTERN sandesha2_property_bean_t* AXIS2_CALL
00081 sandesha2_utils_get_property_bean(
00082     const axutil_env_t *env,
00083     axis2_conf_t *conf);
00084 
00085 AXIS2_EXTERN sandesha2_property_bean_t* AXIS2_CALL
00086 sandesha2_utils_get_property_bean_from_op(
00087     const axutil_env_t *env,
00088     axis2_op_t *op);
00089 
00090 AXIS2_EXTERN axutil_array_list_t* AXIS2_CALL
00091 sandesha2_utils_get_array_list_from_string(
00092     const axutil_env_t *env,
00093     axis2_char_t *string);
00094 
00095 AXIS2_EXTERN axis2_bool_t AXIS2_CALL
00096 sandesha2_utils_array_list_contains(
00097     const axutil_env_t *env,
00098     axutil_array_list_t *list,
00099     axis2_char_t *string);
00100 
00101 AXIS2_EXTERN axis2_char_t* AXIS2_CALL
00102 sandesha2_utils_array_list_to_string(
00103     const axutil_env_t *env,
00104     axutil_array_list_t *list,
00105     int type);
00106 
00107 AXIS2_EXTERN axis2_status_t AXIS2_CALL                        
00108 sandesha2_utils_start_invoker_for_seq(
00109     const axutil_env_t *env,
00110     axis2_conf_ctx_t *conf_ctx,
00111     axis2_char_t *seq_id);
00112 
00113 AXIS2_EXTERN axis2_status_t AXIS2_CALL                        
00114 sandesha2_utils_start_sender_for_seq(
00115     const axutil_env_t *env,
00116     axis2_conf_ctx_t *conf_ctx,
00117     axis2_char_t *seq_id,
00118     const axis2_bool_t persistent);
00119 
00120 AXIS2_EXTERN axis2_status_t AXIS2_CALL                        
00121 sandesha2_utils_start_polling_mgr(
00122     const axutil_env_t *env,
00123     axis2_conf_ctx_t *conf_ctx,
00124     const axis2_char_t *internal_seq_id);
00125                         
00126 AXIS2_EXTERN axis2_char_t* AXIS2_CALL
00127 sandesha2_utils_get_outgoing_internal_seq_id(
00128     const axutil_env_t *env,
00129     axis2_char_t *seq_id);
00130 
00131 AXIS2_EXTERN axis2_transport_out_desc_t* AXIS2_CALL
00132 sandesha2_utils_get_transport_out(
00133     const axutil_env_t *env);
00134 
00135 AXIS2_EXTERN sandesha2_storage_mgr_t* AXIS2_CALL
00136 sandesha2_utils_get_inmemory_storage_mgr(
00137     const axutil_env_t *env,
00138     axis2_conf_ctx_t *conf_ctx);
00139                         
00140 AXIS2_EXTERN sandesha2_storage_mgr_t* AXIS2_CALL
00141 sandesha2_utils_get_permanent_storage_mgr(
00142     const axutil_env_t *env,
00143     axis2_conf_ctx_t *conf_ctx);
00144 
00145 AXIS2_EXTERN axis2_char_t* AXIS2_CALL                       
00146 sandesha2_utils_get_svr_side_incoming_seq_id(
00147     const axutil_env_t *env,
00148     axis2_char_t *incoming_seq_id);
00149 
00157 AXIS2_EXTERN axis2_char_t* AXIS2_CALL
00158 sandesha2_utils_get_internal_seq_id(
00159     const axutil_env_t *env,
00160     axis2_char_t *to,
00161     axis2_char_t *seq_key);
00162 
00163 AXIS2_EXTERN axis2_msg_ctx_t *AXIS2_CALL
00164 sandesha2_utils_create_new_related_msg_ctx(
00165     const axutil_env_t *env,
00166     sandesha2_msg_ctx_t *ref_rm_msg,
00167     axis2_op_t *op);
00168                         
00169 AXIS2_EXTERN  int AXIS2_CALL
00170 sandesha2_utils_get_soap_version(
00171     const axutil_env_t *env, 
00172     axiom_soap_envelope_t *envelope);
00173                         
00174 AXIS2_EXTERN axis2_char_t* AXIS2_CALL
00175 sandesha2_utils_trim_string(
00176     const axutil_env_t *env, 
00177     axis2_char_t *orig_string);
00178 
00179 AXIS2_EXTERN axis2_bool_t AXIS2_CALL                        
00180 sandesha2_utils_is_retrievable_on_faults(
00181     const axutil_env_t *env,
00182     axis2_msg_ctx_t *msg_ctx);
00183 
00184 AXIS2_EXTERN axis2_bool_t AXIS2_CALL
00185 sandesha2_utils_is_rm_global_msg(
00186     const axutil_env_t *env,
00187     axis2_msg_ctx_t *msg_ctx);
00188                         
00189 AXIS2_EXTERN axis2_char_t *AXIS2_CALL
00190 sandesha2_utils_get_seq_id_from_rm_msg_ctx(
00191     const axutil_env_t *env, 
00192     sandesha2_msg_ctx_t *rm_msg_ctx);
00193 
00194 AXIS2_EXTERN axis2_char_t *AXIS2_CALL
00195 sandesha2_spec_specific_consts_get_ack_req_soap_action(
00196     const axutil_env_t *env,
00197     axis2_char_t *spec_version);
00198 
00207 AXIS2_EXTERN axutil_array_list_t *AXIS2_CALL
00208 sandesha2_utils_get_ack_range_list(
00209     const axutil_env_t *env,
00210     axis2_char_t *msg_no_str,
00211     axis2_char_t *rm_ns_value);
00212     
00213 AXIS2_EXTERN axis2_bool_t AXIS2_CALL
00214 sandesha2_utils_is_all_msgs_acked_upto(
00215     const axutil_env_t *env,
00216     long highest_in_msg_no,
00217     axis2_char_t *internal_seq_id,
00218     sandesha2_storage_mgr_t *storage_mgr);
00219 
00220 axis2_status_t AXIS2_CALL
00221 sandesha2_utils_execute_and_store(
00222     const axutil_env_t *env,
00223     sandesha2_msg_ctx_t *rm_msg_ctx,
00224     axis2_char_t *storage_key);
00225 
00226 axis2_bool_t AXIS2_CALL
00227 sandesha2_utils_is_wsrm_anon_reply_to(
00228     const axutil_env_t *env,
00229     const axis2_char_t *reply_to);
00230 
00231 axis2_bool_t AXIS2_CALL
00232 sandesha2_utils_is_anon_uri(
00233     const axutil_env_t *env,
00234     const axis2_char_t *address);
00235 
00236 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00237 sandesha2_utils_stop_invoker(
00238     const axutil_env_t *env,
00239     axis2_conf_ctx_t *conf_ctx);
00240 
00241 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00242 sandesha2_utils_stop_sender(
00243     const axutil_env_t *env,
00244     axis2_conf_ctx_t *conf_ctx);
00245 
00246 AXIS2_EXTERN axis2_status_t AXIS2_CALL                        
00247 sandesha2_utils_stop_polling_mgr(
00248     const axutil_env_t *env,
00249     axis2_conf_ctx_t *conf_ctx);
00250 
00251 axutil_array_list_t *AXIS2_CALL
00252 sandesha2_utils_split(
00253     const axutil_env_t *env,
00254     axis2_char_t *str,
00255     axis2_char_t *pattern);
00256 
00257 axis2_bool_t AXIS2_CALL
00258 sandesha2_utils_is_single_channel(
00259     const axutil_env_t *env,
00260     const axis2_char_t *rm_version,
00261     const axis2_char_t *acks_to_addr);
00262 
00263 AXIS2_EXTERN axis2_msg_ctx_t * AXIS2_CALL
00264 sandesha2_utils_create_out_msg_ctx(
00265     const axutil_env_t *env,
00266     axis2_msg_ctx_t *in_msg_ctx);
00267 
00269 #ifdef __cplusplus
00270 }
00271 #endif
00272 
00273 #endif                          /* SANDESHA2_UTILS_H */
00274 

Generated on Mon Oct 1 17:19:03 2007 for Sandesha2/C by  doxygen 1.5.3