axis2_http_transport_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 AXIS2_HTTP_TRANSPORT_UTILS_H
00018 #define AXIS2_HTTP_TRANSPORT_UTILS_H
00019 
00031 #include <axis2_const.h>
00032 #include <axis2_defines.h>
00033 #include <axis2_env.h>
00034 #include <axiom_stax_builder.h>
00035 #include <axis2_msg_ctx.h>
00036 #include <axis2_conf_ctx.h>
00037 #include <axis2_hash.h>
00038 #include <axiom_element.h>
00039 #include <axis2_stream.h>
00040 #include <axiom_soap_envelope.h>
00041 #include <axis2_http_chunked_stream.h>
00042 
00043 #ifdef __cplusplus
00044 extern "C"
00045 {
00046 #endif
00047 
00048 
00049     /*
00050      * struct to hold the callback information
00051      */
00052     struct axis2_callback_info
00053     {
00054         const axis2_env_t *env;
00055         void *in_stream;
00056         int content_length;
00057         int unread_len;
00058         axis2_http_chunked_stream_t *chunked_stream;
00059     };
00060     typedef struct axis2_callback_info axis2_callback_info_t;
00061 
00062     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00063     axis2_http_transport_utils_process_http_post_request(
00064         const axis2_env_t *env,
00065         axis2_msg_ctx_t *msg_ctx,
00066         axis2_stream_t *in_stream,
00067         axis2_stream_t *out_stream,
00068         const axis2_char_t *content_type,
00069         const int content_length,
00070         axis2_char_t *soap_action_header,
00071         const axis2_char_t *request_uri);
00072 
00073     AXIS2_EXTERN axis2_bool_t AXIS2_CALL
00074     axis2_http_transport_utils_process_http_get_request(
00075         const axis2_env_t *env,
00076         axis2_msg_ctx_t *msg_ctx,
00077         axis2_stream_t *in_stream,
00078         axis2_stream_t *out_stream,
00079         const axis2_char_t *content_type,
00080         axis2_char_t *soap_action_header,
00081         const axis2_char_t *request_uri,
00082         axis2_conf_ctx_t *conf_ctx,
00083         axis2_hash_t *request_params);
00084 
00085     AXIS2_EXTERN axiom_stax_builder_t *AXIS2_CALL
00086     axis2_http_transport_utils_select_builder_for_mime(
00087         const axis2_env_t *env, 
00088         axis2_char_t *request_uri,
00089         axis2_msg_ctx_t *msg_ctx, 
00090         axis2_stream_t *in_stream,
00091         axis2_char_t *content_type);
00092 
00093     AXIS2_EXTERN axis2_bool_t AXIS2_CALL
00094     axis2_http_transport_utils_do_write_mtom(
00095         const axis2_env_t *env,
00096         axis2_msg_ctx_t *msg_ctx);
00097 
00098     AXIS2_EXTERN axis2_bool_t AXIS2_CALL
00099     axis2_http_transport_utils_is_doing_rest(
00100         const axis2_env_t *env,
00101         axis2_msg_ctx_t *msg_ctx);
00102 
00103     AXIS2_EXTERN axis2_bool_t AXIS2_CALL
00104     axis2_http_transport_utils_is_doing_rest_through_post(
00105         const axis2_env_t *env, 
00106         axis2_msg_ctx_t *msg_ctx);
00107 
00108     AXIS2_EXTERN axis2_hash_t *AXIS2_CALL
00109     axis2_http_transport_utils_get_request_params(
00110         const axis2_env_t *env,
00111         axis2_char_t *request_uri);
00112 
00113     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
00114     axis2_http_transport_utils_get_services_html(
00115         const axis2_env_t *env,
00116         axis2_conf_ctx_t *conf_ctx);
00117 
00118     AXIS2_EXTERN axis2_hash_t *AXIS2_CALL
00119     axis2_http_transport_utils_get_request_params(
00120         const axis2_env_t *env,
00121         axis2_char_t *request_uri);
00122 
00123     AXIS2_EXTERN axiom_soap_envelope_t *AXIS2_CALL
00124     axis2_http_transport_utils_create_soap_msg(
00125         const axis2_env_t *env,
00126         axis2_msg_ctx_t *msg_ctx,
00127         const axis2_char_t *soap_ns_uri);
00128 
00129 
00131 #ifdef __cplusplus
00132 }
00133 #endif
00134 
00135 #endif                          /* AXIS2_HTTP_TRANSPORT_UTILS_H */

Generated on Tue Oct 3 20:47:58 2006 for Axis2/C by  doxygen 1.4.7