axis2_http_sender.h

Go to the documentation of this file.
00001 
00002 /*
00003  * Licensed to the Apache Software Foundation (ASF) under one or more
00004  * contributor license agreements.  See the NOTICE file distributed with
00005  * this work for additional information regarding copyright ownership.
00006  * The ASF licenses this file to You under the Apache License, Version 2.0
00007  * (the "License"); you may not use this file except in compliance with
00008  * the License.  You may obtain a copy of the License at
00009  *
00010  *      http://www.apache.org/licenses/LICENSE-2.0
00011  *
00012  * Unless required by applicable law or agreed to in writing, software
00013  * distributed under the License is distributed on an "AS IS" BASIS,
00014  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015  * See the License for the specific language governing permissions and
00016  * limitations under the License.
00017  */
00018 
00019 #ifndef AXIS2_HTTP_SENDER_H
00020 #define AXIS2_HTTP_SENDER_H
00021 
00032 #include <axis2_const.h>
00033 #include <axis2_defines.h>
00034 #include <axutil_env.h>
00035 #include <axis2_msg_ctx.h>
00036 #include <axiom_output.h>
00037 #include <axis2_http_simple_response.h>
00038 #include <axiom_soap_envelope.h>
00039 #include <axis2_http_simple_request.h>
00040 
00041 #ifdef AXIS2_LIBCURL_ENABLED
00042 #include <curl/curl.h>
00043 #endif
00044 
00045 #ifdef __cplusplus
00046 extern "C"
00047 {
00048 #endif
00049 
00051     typedef struct axis2_http_sender axis2_http_sender_t;
00052 
00062     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00063     axis2_http_sender_send(
00064         axis2_http_sender_t * sender,
00065         const axutil_env_t * env,
00066         axis2_msg_ctx_t * msg_ctx,
00067         axiom_soap_envelope_t * out,
00068         const axis2_char_t * str_url,
00069         const axis2_char_t * soap_action);
00070 
00071     void AXIS2_CALL
00072     axis2_http_sender_util_add_header(
00073         const axutil_env_t * env,
00074         axis2_http_simple_request_t * request,
00075         axis2_char_t * header_name,
00076         const axis2_char_t * header_value);
00077 
00078 #ifdef AXIS2_LIBCURL_ENABLED
00079     typedef struct axis2_libcurl axis2_libcurl_t;
00080 
00081     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00082     axis2_libcurl_http_send(
00083         axis2_libcurl_t * curl,
00084         axis2_http_sender_t * sender,
00085         const axutil_env_t * env,
00086         axis2_msg_ctx_t * msg_ctx,
00087         axiom_soap_envelope_t * out,
00088         const axis2_char_t * str_url,
00089         const axis2_char_t * soap_action);
00090 #endif
00091 
00098     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00099     axis2_http_sender_set_chunked(
00100         axis2_http_sender_t * sender,
00101         const axutil_env_t * env,
00102         axis2_bool_t chunked);
00103 
00110     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00111     axis2_http_sender_set_om_output(
00112         axis2_http_sender_t * sender,
00113         const axutil_env_t * env,
00114         axiom_output_t * om_output);
00115 
00122     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00123 
00124     axis2_http_sender_set_http_version(
00125         axis2_http_sender_t * sender,
00126         const axutil_env_t * env,
00127         axis2_char_t * version);
00128 
00134     AXIS2_EXTERN void AXIS2_CALL
00135     axis2_http_sender_free(
00136         axis2_http_sender_t * sender,
00137         const axutil_env_t * env);
00138 
00145     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00146     axis2_http_sender_get_header_info(
00147         axis2_http_sender_t * sender,
00148         const axutil_env_t * env,
00149         axis2_msg_ctx_t * msg_ctx,
00150         axis2_http_simple_response_t * response);
00151 
00158     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00159 
00160     axis2_http_sender_process_response(
00161         axis2_http_sender_t * sender,
00162         const axutil_env_t * env,
00163         axis2_msg_ctx_t * msg_ctx,
00164         axis2_http_simple_response_t * response);
00165 
00171     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00172 
00173     axis2_http_sender_get_timeout_values(
00174         axis2_http_sender_t * sender,
00175         const axutil_env_t * env,
00176         axis2_msg_ctx_t * msg_ctx);
00177 
00178     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
00179     axis2_http_sender_get_param_string(
00180         axis2_http_sender_t * sender,
00181         const axutil_env_t * env,
00182         axis2_msg_ctx_t * msg_ctx);
00183 
00187     AXIS2_EXTERN axis2_http_sender_t *AXIS2_CALL
00188     axis2_http_sender_create(
00189         const axutil_env_t * env);
00190 
00192 #define AXIS2_HTTP_SENDER_SEND(sender, env, msg_ctx, output, url,soap_action)\
00193         axis2_http_sender_send(sender, env, msg_ctx,output, url, soap_action)
00194 
00196 #define AXIS2_HTTP_SENDER_SET_CHUNKED(sender, env, chunked) \
00197                         axis2_http_sender_set_chunked(sender, env, chunked)
00198 
00200 #define AXIS2_HTTP_SENDER_SET_OM_OUTPUT(sender, env, om_output) \
00201                         axis2_http_sender_set_om_output (sender, env, om_output)
00202 
00204 #define AXIS2_HTTP_SENDER_SET_HTTP_VERSION(sender, env, version)\
00205                         axis2_http_sender_set_http_version (sender, env, version)
00206 
00208 #define AXIS2_HTTP_SENDER_FREE(sender, env) \
00209                         axis2_http_sender_free(sender, env)
00210 
00212 #ifdef __cplusplus
00213 }
00214 #endif
00215 #endif                          /* AXIS2_HTTP_SENDER_H */

Generated on Fri Apr 17 11:49:42 2009 for Axis2/C by  doxygen 1.5.3