axiom_mime_parser.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 AXIOM_MIME_PARSER_H
00020 #define AXIOM_MIME_PARSER_H
00021 
00027 #include <axutil_utils.h>
00028 #include <axutil_error.h>
00029 #include <axutil_utils_defines.h>
00030 #include <axutil_env.h>
00031 #include <axutil_allocator.h>
00032 #include <axutil_string.h>
00033 #include <axutil_hash.h>
00034 #include <axiom_mime_const.h>
00035 
00036 #ifdef __cplusplus
00037 extern "C"
00038 {
00039 #endif
00040 
00041     typedef struct axiom_mime_parser axiom_mime_parser_t;
00042 
00048     AXIS2_EXTERN axutil_hash_t *AXIS2_CALL
00049     axiom_mime_parser_parse(
00050         axiom_mime_parser_t * mime_parser,
00051         const axutil_env_t * env,
00052         AXIS2_READ_INPUT_CALLBACK,
00053         void *callback_ctx,
00054         axis2_char_t * mime_boundary);
00055 
00056     AXIS2_EXTERN axutil_hash_t *AXIS2_CALL
00057 
00058     axiom_mime_parser_get_mime_parts_map(
00059         axiom_mime_parser_t * mime_parser,
00060         const axutil_env_t * env);
00061 
00065     AXIS2_EXTERN void AXIS2_CALL
00066     axiom_mime_parser_free(
00067         axiom_mime_parser_t * mime_parser,
00068         const axutil_env_t * env);
00069 
00070     AXIS2_EXTERN int AXIS2_CALL
00071     axiom_mime_parser_get_soap_body_len(
00072         axiom_mime_parser_t * mime_parser,
00073         const axutil_env_t * env);
00074 
00075     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
00076 
00077     axiom_mime_parser_get_soap_body_str(
00078         axiom_mime_parser_t * mime_parser,
00079         const axutil_env_t * env);
00080 
00085     AXIS2_EXTERN axiom_mime_parser_t *AXIS2_CALL
00086     axiom_mime_parser_create(
00087         const axutil_env_t * env);
00088 
00089     AXIS2_EXTERN void AXIS2_CALL
00090     axiom_mime_parser_set_chunk_buffer_size(
00091         axiom_mime_parser_t * mime_parser,
00092         const axutil_env_t * env,
00093         int size);
00094 
00095     AXIS2_EXTERN void AXIS2_CALL
00096     axiom_mime_parser_set_max_chunk_buffers(
00097         axiom_mime_parser_t * mime_parser,
00098         const axutil_env_t * env,
00099         int num);
00100 
00101 
00102 
00105 #ifdef __cplusplus
00106 }
00107 #endif
00108 #endif                          /* AXIOM_MIME_PARSER_H */

Generated on Wed Feb 27 19:55:34 2008 for Axis2/C by  doxygen 1.5.5