axis2_http_out_transport_info.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_OUT_TRANSPORT_INFO_H
00020 #define AXIS2_HTTP_OUT_TRANSPORT_INFO_H
00021 
00034 #include <axis2_const.h>
00035 #include <axis2_defines.h>
00036 #include <axutil_env.h>
00037 #include <axis2_http_simple_response.h>
00038 
00039 #ifdef __cplusplus
00040 extern "C"
00041 {
00042 #endif
00043 
00045     typedef struct axis2_http_out_transport_info
00046                 axis2_http_out_transport_info_t;
00047 
00048     struct axis2_http_out_transport_info
00049     {
00050         axis2_http_simple_response_t *response;
00051         axis2_char_t *encoding;
00052 
00053         axis2_status_t(
00054             AXIS2_CALL
00055             * set_content_type)(
00056                 axis2_http_out_transport_info_t * info,
00057                 const axutil_env_t * env,
00058                 const axis2_char_t * content_type);
00059 
00060         axis2_status_t(
00061             AXIS2_CALL
00062             * set_char_encoding)(
00063                 axis2_http_out_transport_info_t * info,
00064                 const axutil_env_t * env,
00065                 const axis2_char_t * encoding);
00066 
00067         void(
00068             AXIS2_CALL
00069             * free_function)(
00070                 axis2_http_out_transport_info_t * info,
00071                 const axutil_env_t * env);
00072     };
00073 
00079     AXIS2_EXTERN int AXIS2_CALL
00080 
00081     axis2_http_out_transport_info_set_content_type(
00082         axis2_http_out_transport_info_t * info,
00083         const axutil_env_t * env,
00084         const axis2_char_t * content_type);
00085 
00092     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00093 
00094     axis2_http_out_transport_info_set_char_encoding(
00095         axis2_http_out_transport_info_t * info,
00096         const axutil_env_t * env,
00097         const axis2_char_t * encoding);
00098 
00104     AXIS2_EXTERN void AXIS2_CALL
00105     axis2_http_out_transport_info_free(
00106         axis2_http_out_transport_info_t * out_transport_info,
00107         const axutil_env_t * env);
00108 
00113     AXIS2_EXTERN axis2_http_out_transport_info_t *AXIS2_CALL
00114 
00115     axis2_http_out_transport_info_create(
00116         const axutil_env_t * env,
00117         axis2_http_simple_response_t * response);
00118 
00126     AXIS2_EXTERN void AXIS2_CALL
00127     axis2_http_out_transport_info_free_void_arg(
00128         void *transport_info,
00129         const axutil_env_t * env);
00130 
00131     AXIS2_EXTERN void AXIS2_CALL
00132 
00133     axis2_http_out_transport_info_set_char_encoding_func(
00134         axis2_http_out_transport_info_t * out_transport_info,
00135         const axutil_env_t * env,
00136         axis2_status_t(AXIS2_CALL
00137                 * set_encoding)
00138         (axis2_http_out_transport_info_t *,
00139                 const axutil_env_t *,
00140                 const axis2_char_t *));
00141 
00142     AXIS2_EXTERN void AXIS2_CALL
00143 
00144     axis2_http_out_transport_info_set_content_type_func(
00145         axis2_http_out_transport_info_t * out_transport_info,
00146         const axutil_env_t * env,
00147         axis2_status_t(AXIS2_CALL
00148                 *
00149                 set_content_type)(axis2_http_out_transport_info_t *,
00150                         const axutil_env_t *,
00151                         const axis2_char_t *));
00152 
00153     AXIS2_EXTERN void AXIS2_CALL
00154     axis2_http_out_transport_info_set_free_func(
00155         axis2_http_out_transport_info_t * out_transport_info,
00156         const axutil_env_t * env,
00157         void(AXIS2_CALL
00158                 * free_function)(axis2_http_out_transport_info_t *,
00159                         const axutil_env_t *));
00160 
00162 #define AXIS2_HTTP_OUT_TRANSPORT_INFO_SET_CONTENT_TYPE(out_transport_info, \
00163                env, content_type) axis2_http_out_transport_info_set_content_type (out_transport_info, env, content_type)
00164 
00166 #define AXIS2_HTTP_OUT_TRANSPORT_INFO_SET_CHAR_ENCODING(out_transport_info,\
00167                env, encoding) axis2_http_out_transport_info_set_char_encoding(out_transport_info, env, encoding)
00168 
00170 #define AXIS2_HTTP_OUT_TRANSPORT_INFO_FREE(out_transport_info, env)\
00171                     axis2_http_out_transport_info_free(out_transport_info, env)
00172 
00174 #ifdef __cplusplus
00175 }
00176 #endif
00177 #endif                          /* AXIS2_HTTP_OUT_TRANSPORT_INFO_H */

Generated on Tue Jan 8 01:23:15 2008 for Axis2/C by  doxygen 1.5.1