axis2_http_response_writer.h

Go to the documentation of this file.
00001 /*
00002 * Licensed to the Apache Software Foundation (ASF) under one or more
00003 * contributor license agreements.  See the NOTICE file distributed with
00004 * this work for additional information regarding copyright ownership.
00005 * The ASF licenses this file to You under the Apache License, Version 2.0
00006 * (the "License"); you may not use this file except in compliance with
00007 * the License.  You may obtain a copy of the License at
00008 *
00009 *      http://www.apache.org/licenses/LICENSE-2.0
00010 *
00011 * Unless required by applicable law or agreed to in writing, software
00012 * distributed under the License is distributed on an "AS IS" BASIS,
00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014 * See the License for the specific language governing permissions and
00015 * limitations under the License.
00016 */
00017 
00018 #ifndef AXIS2_HTTP_RESPONSE_WRITER_H
00019 #define AXIS2_HTTP_RESPONSE_WRITER_H
00020 
00032 #include <axis2_const.h>
00033 #include <axis2_defines.h>
00034 #include <axutil_env.h>
00035 #include <axutil_stream.h>
00036 
00037 #ifdef __cplusplus
00038 extern "C"
00039 {
00040 #endif
00041 
00043     typedef struct axis2_http_response_writer axis2_http_response_writer_t;
00044 
00045 
00050     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
00051     axis2_http_response_writer_get_encoding(const axis2_http_response_writer_t *response_writer,
00052         const axutil_env_t *env);
00053 
00059     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00060     axis2_http_response_writer_close(axis2_http_response_writer_t *response_writer,
00061         const axutil_env_t *env);
00062 
00068     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00069     axis2_http_response_writer_flush(axis2_http_response_writer_t *response_writer,
00070         const axutil_env_t *env);
00071 
00078     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00079     axis2_http_response_writer_write_char(axis2_http_response_writer_t *response_writer,
00080         const axutil_env_t *env,
00081         char c);
00082 
00091     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00092     axis2_http_response_writer_write_buf(axis2_http_response_writer_t *response_writer,
00093         const axutil_env_t *env,
00094         char *buf,
00095         int offset,
00096         axis2_ssize_t len);
00097 
00104     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00105     axis2_http_response_writer_print_str(axis2_http_response_writer_t *response_writer,
00106         const axutil_env_t *env,
00107         const char *str);
00108 
00115     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00116     axis2_http_response_writer_print_int(axis2_http_response_writer_t *response_writer,
00117         const axutil_env_t *env,
00118         int i);
00119 
00126     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00127     axis2_http_response_writer_println_str(axis2_http_response_writer_t *response_writer,
00128         const axutil_env_t *env,
00129         const char *str);
00130 
00136     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00137     axis2_http_response_writer_println(axis2_http_response_writer_t *response_writer,
00138         const axutil_env_t *env);
00139 
00145     AXIS2_EXTERN void AXIS2_CALL
00146     axis2_http_response_writer_free(axis2_http_response_writer_t *response_writer,
00147         const axutil_env_t *env);
00148 
00153     AXIS2_EXTERN axis2_http_response_writer_t *AXIS2_CALL
00154     axis2_http_response_writer_create (
00155         const axutil_env_t *env,
00156         axutil_stream_t *stream);
00157 
00163     AXIS2_EXTERN axis2_http_response_writer_t *AXIS2_CALL
00164     axis2_http_response_writer_create_with_encoding(
00165         const axutil_env_t *env,
00166         axutil_stream_t *stream,
00167         const axis2_char_t *encoding);
00168 
00170 #ifdef __cplusplus
00171 }
00172 #endif
00173 
00174 #endif                          /* AXIS2_HTTP_RESPONSE_WRITER_H */

Generated on Thu May 3 12:31:01 2007 for Axis2/C by  doxygen 1.4.6