You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2007/09/28 11:47:13 UTC
svn commit: r580274 [3/8] - /webservices/axis2/trunk/c/include/
Modified: webservices/axis2/trunk/c/include/axis2_http_request_line.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_http_request_line.h?rev=580274&r1=580273&r2=580274&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_request_line.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_request_line.h Fri Sep 28 02:47:09 2007
@@ -1,3 +1,4 @@
+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -33,7 +34,6 @@
#include <axis2_defines.h>
#include <axutil_env.h>
-
#ifdef __cplusplus
extern "C"
{
@@ -47,32 +47,37 @@
* @param env pointer to environment struct
*/
AXIS2_EXTERN axis2_char_t *AXIS2_CALL
- axis2_http_request_line_get_method(const axis2_http_request_line_t *request_line,
- const axutil_env_t *env);
+ axis2_http_request_line_get_method(
+ const axis2_http_request_line_t * request_line,
+ const axutil_env_t * env);
/**
* @param request_line pointer to request line
* @param env pointer to environment struct
*/
AXIS2_EXTERN axis2_char_t *AXIS2_CALL
- axis2_http_request_line_get_http_version(const axis2_http_request_line_t *request_line,
- const axutil_env_t *env);
+
+ axis2_http_request_line_get_http_version(
+ const axis2_http_request_line_t * request_line,
+ const axutil_env_t * env);
/**
* @param request_line pointer to request line
* @param env pointer to environment struct
*/
AXIS2_EXTERN axis2_char_t *AXIS2_CALL
- axis2_http_request_line_get_uri(const axis2_http_request_line_t *request_line,
- const axutil_env_t *env);
+ axis2_http_request_line_get_uri(
+ const axis2_http_request_line_t * request_line,
+ const axutil_env_t * env);
/**
* @param request_line pointer to request line
* @param env pointer to environment struct
*/
AXIS2_EXTERN axis2_char_t *AXIS2_CALL
- axis2_http_request_line_to_string(axis2_http_request_line_t *request_line,
- const axutil_env_t *env);
+ axis2_http_request_line_to_string(
+ axis2_http_request_line_t * request_line,
+ const axutil_env_t * env);
/**
* @param request_line pointer to request line
@@ -80,32 +85,36 @@
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
AXIS2_EXTERN void AXIS2_CALL
- axis2_http_request_line_free(axis2_http_request_line_t *request_line,
- const axutil_env_t *env);
+ axis2_http_request_line_free(
+ axis2_http_request_line_t * request_line,
+ const axutil_env_t * env);
- /**
+ /**
* @param env pointer to environment struct
* @param method pointer to method
* @param uri pointer to uri
* @param http_version pointer to http version
*/
AXIS2_EXTERN axis2_http_request_line_t *AXIS2_CALL
- axis2_http_request_line_create(const axutil_env_t *env,
- const axis2_char_t *method,
- const axis2_char_t *uri,
- const axis2_char_t *http_version);
+
+ axis2_http_request_line_create(
+ const axutil_env_t * env,
+ const axis2_char_t * method,
+ const axis2_char_t * uri,
+ const axis2_char_t * http_version);
/**
* @param env pointer to environment struct
* @param str pointer to str
*/
AXIS2_EXTERN axis2_http_request_line_t *AXIS2_CALL
- axis2_http_request_line_parse_line(const axutil_env_t *env,
- const axis2_char_t *str);
+ axis2_http_request_line_parse_line(
+ const axutil_env_t * env,
+ const axis2_char_t * str);
-/** @} */
+ /** @} */
#ifdef __cplusplus
}
#endif
-#endif /* AXIS2_HTTP_REQUEST_LINE_H */
+#endif /* AXIS2_HTTP_REQUEST_LINE_H */
Modified: webservices/axis2/trunk/c/include/axis2_http_response_writer.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_http_response_writer.h?rev=580274&r1=580273&r2=580274&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_response_writer.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_response_writer.h Fri Sep 28 02:47:09 2007
@@ -1,3 +1,4 @@
+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -19,7 +20,7 @@
#define AXIS2_HTTP_RESPONSE_WRITER_H
/**
- * @defgroup axis2_http_response_writer http response writer
+ * @defgroup axis2_http_response_writer http response writer
* @ingroup axis2_core_trans_http
* @{
*/
@@ -42,14 +43,15 @@
/** Type name for struct axis2_http_response_writer */
typedef struct axis2_http_response_writer axis2_http_response_writer_t;
-
/**
* @param response_writer pointer to response writer
* @param env pointer to environment struct
*/
AXIS2_EXTERN axis2_char_t *AXIS2_CALL
- axis2_http_response_writer_get_encoding(const axis2_http_response_writer_t *response_writer,
- const axutil_env_t *env);
+
+ axis2_http_response_writer_get_encoding(
+ const axis2_http_response_writer_t * response_writer,
+ const axutil_env_t * env);
/**
* @param response_writer pointer to response writer
@@ -57,8 +59,9 @@
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_response_writer_close(axis2_http_response_writer_t *response_writer,
- const axutil_env_t *env);
+ axis2_http_response_writer_close(
+ axis2_http_response_writer_t * response_writer,
+ const axutil_env_t * env);
/**
* @param response_writer pointer to response writer
@@ -66,8 +69,9 @@
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_response_writer_flush(axis2_http_response_writer_t *response_writer,
- const axutil_env_t *env);
+ axis2_http_response_writer_flush(
+ axis2_http_response_writer_t * response_writer,
+ const axutil_env_t * env);
/**
* @param response_writer pointer to response writer
@@ -76,8 +80,10 @@
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_response_writer_write_char(axis2_http_response_writer_t *response_writer,
- const axutil_env_t *env,
+
+ axis2_http_response_writer_write_char(
+ axis2_http_response_writer_t * response_writer,
+ const axutil_env_t * env,
char c);
/**
@@ -89,8 +95,10 @@
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_response_writer_write_buf(axis2_http_response_writer_t *response_writer,
- const axutil_env_t *env,
+
+ axis2_http_response_writer_write_buf(
+ axis2_http_response_writer_t * response_writer,
+ const axutil_env_t * env,
char *buf,
int offset,
axis2_ssize_t len);
@@ -102,8 +110,10 @@
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_response_writer_print_str(axis2_http_response_writer_t *response_writer,
- const axutil_env_t *env,
+
+ axis2_http_response_writer_print_str(
+ axis2_http_response_writer_t * response_writer,
+ const axutil_env_t * env,
const char *str);
/**
@@ -113,8 +123,10 @@
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_response_writer_print_int(axis2_http_response_writer_t *response_writer,
- const axutil_env_t *env,
+
+ axis2_http_response_writer_print_int(
+ axis2_http_response_writer_t * response_writer,
+ const axutil_env_t * env,
int i);
/**
@@ -124,8 +136,10 @@
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_response_writer_println_str(axis2_http_response_writer_t *response_writer,
- const axutil_env_t *env,
+
+ axis2_http_response_writer_println_str(
+ axis2_http_response_writer_t * response_writer,
+ const axutil_env_t * env,
const char *str);
/**
@@ -134,8 +148,10 @@
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_response_writer_println(axis2_http_response_writer_t *response_writer,
- const axutil_env_t *env);
+
+ axis2_http_response_writer_println(
+ axis2_http_response_writer_t * response_writer,
+ const axutil_env_t * env);
/**
* @param response_writer pointer to response writer
@@ -143,17 +159,19 @@
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
AXIS2_EXTERN void AXIS2_CALL
- axis2_http_response_writer_free(axis2_http_response_writer_t *response_writer,
- const axutil_env_t *env);
+ axis2_http_response_writer_free(
+ axis2_http_response_writer_t * response_writer,
+ const axutil_env_t * env);
/**
* @param env pointer to environment struct
* @param stream pointer to stream
*/
AXIS2_EXTERN axis2_http_response_writer_t *AXIS2_CALL
- axis2_http_response_writer_create (
- const axutil_env_t *env,
- axutil_stream_t *stream);
+
+ axis2_http_response_writer_create(
+ const axutil_env_t * env,
+ axutil_stream_t * stream);
/**
* @param env pointer to environment struct
@@ -161,12 +179,13 @@
* @param encoding pointer to encoding
*/
AXIS2_EXTERN axis2_http_response_writer_t *AXIS2_CALL
+
axis2_http_response_writer_create_with_encoding(
- const axutil_env_t *env,
- axutil_stream_t *stream,
- const axis2_char_t *encoding);
+ const axutil_env_t * env,
+ axutil_stream_t * stream,
+ const axis2_char_t * encoding);
-/** @} */
+ /** @} */
#ifdef __cplusplus
}
#endif
Modified: webservices/axis2/trunk/c/include/axis2_http_sender.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_http_sender.h?rev=580274&r1=580273&r2=580274&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_sender.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_sender.h Fri Sep 28 02:47:09 2007
@@ -1,3 +1,4 @@
+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -41,7 +42,6 @@
#include <curl/curl.h>
#endif
-
#ifdef __cplusplus
extern "C"
{
@@ -50,7 +50,6 @@
/** Type name for struct axis2_http_sender_ */
typedef struct axis2_http_sender axis2_http_sender_t;
-
/**
* @param sender sender
* @param env pointer to environment struct
@@ -61,32 +60,32 @@
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_sender_send(axis2_http_sender_t *sender,
- const axutil_env_t *env,
- axis2_msg_ctx_t *msg_ctx,
- axiom_soap_envelope_t *out,
- const axis2_char_t *str_url,
- const axis2_char_t *soap_action);
-
+ axis2_http_sender_send(
+ axis2_http_sender_t * sender,
+ const axutil_env_t * env,
+ axis2_msg_ctx_t * msg_ctx,
+ axiom_soap_envelope_t * out,
+ const axis2_char_t * str_url,
+ const axis2_char_t * soap_action);
void AXIS2_CALL
- axis2_http_sender_util_add_header (
- const axutil_env_t *env,
- axis2_http_simple_request_t *request,
- axis2_char_t *header_name,
- const axis2_char_t *header_value);
+ axis2_http_sender_util_add_header(
+ const axutil_env_t * env,
+ axis2_http_simple_request_t * request,
+ axis2_char_t * header_name,
+ const axis2_char_t * header_value);
#ifdef AXIS2_LIBCURL_ENABLED
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_libcurl_http_send(axis2_http_sender_t *sender,
- const axutil_env_t *env,
- axis2_msg_ctx_t *msg_ctx,
- axiom_soap_envelope_t *out,
- const axis2_char_t *str_url,
- const axis2_char_t *soap_action);
+ axis2_libcurl_http_send(
+ axis2_http_sender_t * sender,
+ const axutil_env_t * env,
+ axis2_msg_ctx_t * msg_ctx,
+ axiom_soap_envelope_t * out,
+ const axis2_char_t * str_url,
+ const axis2_char_t * soap_action);
#endif
-
/**
* @param sender sender
* @param env pointer to environment struct
@@ -94,8 +93,9 @@
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_sender_set_chunked(axis2_http_sender_t *sender,
- const axutil_env_t *env,
+ axis2_http_sender_set_chunked(
+ axis2_http_sender_t * sender,
+ const axutil_env_t * env,
axis2_bool_t chunked);
/**
@@ -105,9 +105,10 @@
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_sender_set_om_output(axis2_http_sender_t *sender,
- const axutil_env_t *env,
- axiom_output_t *om_output);
+ axis2_http_sender_set_om_output(
+ axis2_http_sender_t * sender,
+ const axutil_env_t * env,
+ axiom_output_t * om_output);
/**
* @param sender sender
@@ -116,9 +117,11 @@
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_sender_set_http_version(axis2_http_sender_t *sender,
- const axutil_env_t *env,
- axis2_char_t *version);
+
+ axis2_http_sender_set_http_version(
+ axis2_http_sender_t * sender,
+ const axutil_env_t * env,
+ axis2_char_t * version);
/**
* @param sender sender
@@ -126,8 +129,9 @@
* @return void
*/
AXIS2_EXTERN void AXIS2_CALL
- axis2_http_sender_free(axis2_http_sender_t *sender,
- const axutil_env_t *env);
+ axis2_http_sender_free(
+ axis2_http_sender_t * sender,
+ const axutil_env_t * env);
/**
* @param sender soap over http sender
@@ -136,10 +140,11 @@
* @param response pointer to response
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_sender_get_header_info(axis2_http_sender_t *sender,
- const axutil_env_t *env,
- axis2_msg_ctx_t *msg_ctx,
- axis2_http_simple_response_t *response);
+ axis2_http_sender_get_header_info(
+ axis2_http_sender_t * sender,
+ const axutil_env_t * env,
+ axis2_msg_ctx_t * msg_ctx,
+ axis2_http_simple_response_t * response);
/**
* @param sender soap over http sender
@@ -148,11 +153,12 @@
* @param response pointer to response
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_sender_process_response(axis2_http_sender_t *sender,
- const axutil_env_t *env,
- axis2_msg_ctx_t *msg_ctx,
- axis2_http_simple_response_t *response);
+ axis2_http_sender_process_response(
+ axis2_http_sender_t * sender,
+ const axutil_env_t * env,
+ axis2_msg_ctx_t * msg_ctx,
+ axis2_http_simple_response_t * response);
/**
* @param sender soap over http sender
@@ -160,43 +166,47 @@
* @param msg_ctx pointer to message context
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_sender_get_timeout_values(axis2_http_sender_t *sender,
- const axutil_env_t *env,
- axis2_msg_ctx_t *msg_ctx);
-
- AXIS2_EXTERN axis2_char_t *AXIS2_CALL
- axis2_http_sender_get_param_string(axis2_http_sender_t *sender,
- const axutil_env_t *env,
- axis2_msg_ctx_t *msg_ctx);
+
+ axis2_http_sender_get_timeout_values(
+ axis2_http_sender_t * sender,
+ const axutil_env_t * env,
+ axis2_msg_ctx_t * msg_ctx);
+
+ AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+ axis2_http_sender_get_param_string(
+ axis2_http_sender_t * sender,
+ const axutil_env_t * env,
+ axis2_msg_ctx_t * msg_ctx);
/**
* @param env pointer to environment struct
*/
AXIS2_EXTERN axis2_http_sender_t *AXIS2_CALL
- axis2_http_sender_create(const axutil_env_t *env);
+ axis2_http_sender_create(
+ const axutil_env_t * env);
-/** Send. */
+ /** Send. */
#define AXIS2_HTTP_SENDER_SEND(sender, env, msg_ctx, output, url,soap_action)\
axis2_http_sender_send(sender, env, msg_ctx,output, url, soap_action)
-/** Set chunked. */
+ /** Set chunked. */
#define AXIS2_HTTP_SENDER_SET_CHUNKED(sender, env, chunked) \
axis2_http_sender_set_chunked(sender, env, chunked)
-/** Set om output. */
+ /** Set om output. */
#define AXIS2_HTTP_SENDER_SET_OM_OUTPUT(sender, env, om_output) \
axis2_http_sender_set_om_output (sender, env, om_output)
-/** Set http version. */
+ /** Set http version. */
#define AXIOM_SENDER_SET_HTTP_VERSION(sender, env, version)\
axis2_http_sender_set_http_version (sender, env, version)
-/** Frees the soap over http sender. */
+ /** Frees the soap over http sender. */
#define AXIS2_HTTP_SENDER_FREE(sender, env) \
axis2_http_sender_free(sender, env)
-/** @} */
+ /** @} */
#ifdef __cplusplus
}
#endif
-#endif /* AXIS2_HTTP_SENDER_H */
+#endif /* AXIS2_HTTP_SENDER_H */
Modified: webservices/axis2/trunk/c/include/axis2_http_server.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_http_server.h?rev=580274&r1=580273&r2=580274&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_server.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_server.h Fri Sep 28 02:47:09 2007
@@ -1,3 +1,4 @@
+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -40,21 +41,19 @@
{
#endif
-
-
AXIS2_EXTERN axis2_transport_receiver_t *AXIS2_CALL
- axis2_http_server_create (
- const axutil_env_t *env,
- const axis2_char_t *repo,
+
+ axis2_http_server_create(
+ const axutil_env_t * env,
+ const axis2_char_t * repo,
const int port);
axis2_status_t AXIS2_CALL
axis2_http_server_stop(
- axis2_transport_receiver_t *server,
- const axutil_env_t *env);
-
+ axis2_transport_receiver_t * server,
+ const axutil_env_t * env);
-/** @} */
+ /** @} */
#ifdef __cplusplus
}
#endif
Modified: webservices/axis2/trunk/c/include/axis2_http_simple_request.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_http_simple_request.h?rev=580274&r1=580273&r2=580274&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_simple_request.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_simple_request.h Fri Sep 28 02:47:09 2007
@@ -1,3 +1,4 @@
+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -37,7 +38,6 @@
#include <axutil_stream.h>
#include <axutil_array_list.h>
-
#ifdef __cplusplus
extern "C"
{
@@ -51,8 +51,10 @@
* @param env pointer to environment struct
*/
AXIS2_EXTERN axis2_http_request_line_t *AXIS2_CALL
- axis2_http_simple_request_get_request_line(const axis2_http_simple_request_t *simple_request,
- const axutil_env_t *env);
+
+ axis2_http_simple_request_get_request_line(
+ const axis2_http_simple_request_t * simple_request,
+ const axutil_env_t * env);
/**
* @param simple_request pointer to simple request
@@ -61,9 +63,11 @@
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_simple_request_set_request_line(axis2_http_simple_request_t *simple_request,
- const axutil_env_t *env,
- axis2_http_request_line_t *request_line);
+
+ axis2_http_simple_request_set_request_line(
+ axis2_http_simple_request_t * simple_request,
+ const axutil_env_t * env,
+ axis2_http_request_line_t * request_line);
/**
* @param simple_request pointer to simple request
@@ -71,17 +75,21 @@
* @param name pointer to name
*/
AXIS2_EXTERN axis2_bool_t AXIS2_CALL
- axis2_http_simple_request_contains_header(axis2_http_simple_request_t *simple_request,
- const axutil_env_t *env,
- const axis2_char_t *name);
+
+ axis2_http_simple_request_contains_header(
+ axis2_http_simple_request_t * simple_request,
+ const axutil_env_t * env,
+ const axis2_char_t * name);
/**
* @param simple_request pointer to simple request
* @param env pointer to environment struct
*/
AXIS2_EXTERN axutil_array_list_t *AXIS2_CALL
- axis2_http_simple_request_get_headers(const axis2_http_simple_request_t *simple_request,
- const axutil_env_t *env);
+
+ axis2_http_simple_request_get_headers(
+ const axis2_http_simple_request_t * simple_request,
+ const axutil_env_t * env);
/**
* @param simple_request pointer to simple request
@@ -89,9 +97,11 @@
* @param str pointer to str
*/
AXIS2_EXTERN axis2_http_header_t *AXIS2_CALL
- axis2_http_simple_request_get_first_header(const axis2_http_simple_request_t *simple_request,
- const axutil_env_t *env,
- const axis2_char_t *str);
+
+ axis2_http_simple_request_get_first_header(
+ const axis2_http_simple_request_t * simple_request,
+ const axutil_env_t * env,
+ const axis2_char_t * str);
/**
* @param simple_request pointer to simple request
@@ -100,9 +110,11 @@
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_simple_request_remove_headers(axis2_http_simple_request_t *simple_request,
- const axutil_env_t *env,
- const axis2_char_t *str);
+
+ axis2_http_simple_request_remove_headers(
+ axis2_http_simple_request_t * simple_request,
+ const axutil_env_t * env,
+ const axis2_char_t * str);
/**
* @param simple_request pointer to simple request
@@ -111,41 +123,51 @@
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_simple_request_add_header(axis2_http_simple_request_t *simple_request,
- const axutil_env_t *env,
- axis2_http_header_t *header);
+
+ axis2_http_simple_request_add_header(
+ axis2_http_simple_request_t * simple_request,
+ const axutil_env_t * env,
+ axis2_http_header_t * header);
/**
* @param simple_request pointer to simple request
* @param env pointer to environment struct
*/
AXIS2_EXTERN const axis2_char_t *AXIS2_CALL
- axis2_http_simple_request_get_content_type(const axis2_http_simple_request_t *simple_request,
- const axutil_env_t *env);
+
+ axis2_http_simple_request_get_content_type(
+ const axis2_http_simple_request_t * simple_request,
+ const axutil_env_t * env);
/**
* @param simple_request pointer to simple request
* @param env pointer to environment struct
*/
AXIS2_EXTERN const axis2_char_t *AXIS2_CALL
- axis2_http_simple_request_get_charset(const axis2_http_simple_request_t *simple_request,
- const axutil_env_t *env);
+
+ axis2_http_simple_request_get_charset(
+ const axis2_http_simple_request_t * simple_request,
+ const axutil_env_t * env);
/**
* @param simple_request pointer to simple request
* @param env pointer to environment struct
*/
AXIS2_EXTERN axis2_ssize_t AXIS2_CALL
- axis2_http_simple_request_get_content_length(const axis2_http_simple_request_t *simple_request,
- const axutil_env_t *env);
+
+ axis2_http_simple_request_get_content_length(
+ const axis2_http_simple_request_t * simple_request,
+ const axutil_env_t * env);
/**
* @param simple_request pointer to simple request
* @param env pointer to environment struct
*/
AXIS2_EXTERN axutil_stream_t *AXIS2_CALL
- axis2_http_simple_request_get_body(const axis2_http_simple_request_t *simple_request,
- const axutil_env_t *env);
+
+ axis2_http_simple_request_get_body(
+ const axis2_http_simple_request_t * simple_request,
+ const axutil_env_t * env);
/**
* @param simple_request pointer to simple request
@@ -153,8 +175,10 @@
* @param buf double pointer to buf
*/
AXIS2_EXTERN axis2_ssize_t AXIS2_CALL
- axis2_http_simple_request_get_body_bytes(const axis2_http_simple_request_t *simple_request,
- const axutil_env_t *env,
+
+ axis2_http_simple_request_get_body_bytes(
+ const axis2_http_simple_request_t * simple_request,
+ const axutil_env_t * env,
char **buf);
/**
@@ -164,8 +188,10 @@
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_simple_request_set_body_string(axis2_http_simple_request_t *simple_request,
- const axutil_env_t *env,
+
+ axis2_http_simple_request_set_body_string(
+ axis2_http_simple_request_t * simple_request,
+ const axutil_env_t * env,
void *str,
unsigned int str_len);
@@ -175,8 +201,9 @@
* @return void
*/
AXIS2_EXTERN void AXIS2_CALL
- axis2_http_simple_request_free(axis2_http_simple_request_t *simple_request,
- const axutil_env_t *env);
+ axis2_http_simple_request_free(
+ axis2_http_simple_request_t * simple_request,
+ const axutil_env_t * env);
/**
* @param env pointer to environment struct
@@ -186,13 +213,15 @@
* @param content pointer to content
*/
AXIS2_EXTERN axis2_http_simple_request_t *AXIS2_CALL
- axis2_http_simple_request_create (const axutil_env_t *env,
- axis2_http_request_line_t *request_line,
- axis2_http_header_t **http_headers,
+
+ axis2_http_simple_request_create(
+ const axutil_env_t * env,
+ axis2_http_request_line_t * request_line,
+ axis2_http_header_t ** http_headers,
axis2_ssize_t http_hdr_count,
- axutil_stream_t *content);
+ axutil_stream_t * content);
-/** @} */
+ /** @} */
#ifdef __cplusplus
}
#endif
Modified: webservices/axis2/trunk/c/include/axis2_http_simple_response.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_http_simple_response.h?rev=580274&r1=580273&r2=580274&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_simple_response.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_simple_response.h Fri Sep 28 02:47:09 2007
@@ -1,3 +1,4 @@
+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -37,7 +38,6 @@
#include <axis2_http_header.h>
#include <axutil_stream.h>
-
#ifdef __cplusplus
extern "C"
{
@@ -46,188 +46,224 @@
/** Type name for struct axis2_http_simple_response */
typedef struct axis2_http_simple_response axis2_http_simple_response_t;
- /**
- * @param simple_response pointer to simple response struct
- * @param env pointer to environment struct
- * @param http_ver pointer to http_ver
- * @param status_code pointer to status code
- * @param phrase pointer to phrase
- * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
- */
- AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_simple_response_set_status_line(struct axis2_http_simple_response *simple_response,
- const axutil_env_t *env,
- const axis2_char_t *http_ver,
+ /**
+ * @param simple_response pointer to simple response struct
+ * @param env pointer to environment struct
+ * @param http_ver pointer to http_ver
+ * @param status_code pointer to status code
+ * @param phrase pointer to phrase
+ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+ */
+ AXIS2_EXTERN axis2_status_t AXIS2_CALL
+
+ axis2_http_simple_response_set_status_line(
+ struct axis2_http_simple_response *simple_response,
+ const axutil_env_t * env,
+ const axis2_char_t * http_ver,
const int status_code,
- const axis2_char_t *phrase);
+ const axis2_char_t * phrase);
- /**
- * @param simple_response pointer to simple response struct
- * @param env pointer to environment struct
- */
- AXIS2_EXTERN axis2_char_t* AXIS2_CALL
- axis2_http_simple_response_get_phrase(axis2_http_simple_response_t *simple_response,
- const axutil_env_t *env);
-
- /**
- * @param simple_response pointer to simple response struct
- * @param env pointer to environment struct
- */
+ /**
+ * @param simple_response pointer to simple response struct
+ * @param env pointer to environment struct
+ */
+ AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+
+ axis2_http_simple_response_get_phrase(
+ axis2_http_simple_response_t * simple_response,
+ const axutil_env_t * env);
+
+ /**
+ * @param simple_response pointer to simple response struct
+ * @param env pointer to environment struct
+ */
AXIS2_EXTERN int AXIS2_CALL
- axis2_http_simple_response_get_status_code(axis2_http_simple_response_t *simple_response,
- const axutil_env_t *env);
+ axis2_http_simple_response_get_status_code(
+ axis2_http_simple_response_t * simple_response,
+ const axutil_env_t * env);
+
+ /**
+ * @param simple_response pointer to simple response struct
+ * @param env pointer to environment struct
+ */
+ AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+
+ axis2_http_simple_response_get_http_version(
+ axis2_http_simple_response_t * simple_response,
+ const axutil_env_t * env);
- /**
- * @param simple_response pointer to simple response struct
- * @param env pointer to environment struct
- */
- AXIS2_EXTERN axis2_char_t* AXIS2_CALL
- axis2_http_simple_response_get_http_version(axis2_http_simple_response_t *simple_response,
- const axutil_env_t *env);
-
- /**
- * @param simple_response pointer to simple response struct
- * @param env pointer to environment struct
- */
- AXIS2_EXTERN axis2_char_t* AXIS2_CALL
- axis2_http_simple_response_get_status_line(axis2_http_simple_response_t *simple_response,
- const axutil_env_t *env);
-
- /**
- * @param simple_response pointer to simple response struct
- * @param env pointer to environment struct
- * @param name pointer to name
- */
+ /**
+ * @param simple_response pointer to simple response struct
+ * @param env pointer to environment struct
+ */
+ AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+
+ axis2_http_simple_response_get_status_line(
+ axis2_http_simple_response_t * simple_response,
+ const axutil_env_t * env);
+
+ /**
+ * @param simple_response pointer to simple response struct
+ * @param env pointer to environment struct
+ * @param name pointer to name
+ */
AXIS2_EXTERN axis2_bool_t AXIS2_CALL
- axis2_http_simple_response_contains_header(axis2_http_simple_response_t *simple_response,
- const axutil_env_t *env,
- const axis2_char_t *name);
-
- /**
- * @param simple_response pointer to simple response struct
- * @param env pointer to environment struct
- */
- AXIS2_EXTERN axutil_array_list_t* AXIS2_CALL
- axis2_http_simple_response_get_headers(axis2_http_simple_response_t *simple_response,
- const axutil_env_t *env);
-
- /**
- * @param simple_response pointer to simple response struct
- * @param env pointer to environment struct
- * @param str pointer to str
- */
- AXIS2_EXTERN axis2_http_header_t* AXIS2_CALL
- axis2_http_simple_response_get_first_header(axis2_http_simple_response_t *simple_response,
- const axutil_env_t *env,
- const axis2_char_t *str);
-
- /**
- * @param simple_response pointer to simple response struct
- * @param env pointer to environment struct
- * @param str pointer to str
- * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
- */
- AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_simple_response_remove_headers(axis2_http_simple_response_t *simple_response,
- const axutil_env_t *env,
- const axis2_char_t *str);
-
- /**
- * @param simple_response pointer to simple response struct
- * @param env pointer to environment struct
- * @param header pointer to header
- * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
- */
- AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_simple_response_set_header(axis2_http_simple_response_t *simple_response,
- const axutil_env_t *env,
- axis2_http_header_t* header);
-
- /**
- * @param simple_response pointer to simple response struct
- * @param env pointer to environment struct
- * @param headers double pointer to headers
- * @param array_size
- * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
- */
- AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_simple_response_set_headers(axis2_http_simple_response_t *simple_response,
- const axutil_env_t *env,
- axis2_http_header_t** headers,
+
+ axis2_http_simple_response_contains_header(
+ axis2_http_simple_response_t * simple_response,
+ const axutil_env_t * env,
+ const axis2_char_t * name);
+
+ /**
+ * @param simple_response pointer to simple response struct
+ * @param env pointer to environment struct
+ */
+ AXIS2_EXTERN axutil_array_list_t *AXIS2_CALL
+
+ axis2_http_simple_response_get_headers(
+ axis2_http_simple_response_t * simple_response,
+ const axutil_env_t * env);
+
+ /**
+ * @param simple_response pointer to simple response struct
+ * @param env pointer to environment struct
+ * @param str pointer to str
+ */
+ AXIS2_EXTERN axis2_http_header_t *AXIS2_CALL
+
+ axis2_http_simple_response_get_first_header(
+ axis2_http_simple_response_t * simple_response,
+ const axutil_env_t * env,
+ const axis2_char_t * str);
+
+ /**
+ * @param simple_response pointer to simple response struct
+ * @param env pointer to environment struct
+ * @param str pointer to str
+ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+ */
+ AXIS2_EXTERN axis2_status_t AXIS2_CALL
+
+ axis2_http_simple_response_remove_headers(
+ axis2_http_simple_response_t * simple_response,
+ const axutil_env_t * env,
+ const axis2_char_t * str);
+
+ /**
+ * @param simple_response pointer to simple response struct
+ * @param env pointer to environment struct
+ * @param header pointer to header
+ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+ */
+ AXIS2_EXTERN axis2_status_t AXIS2_CALL
+
+ axis2_http_simple_response_set_header(
+ axis2_http_simple_response_t * simple_response,
+ const axutil_env_t * env,
+ axis2_http_header_t * header);
+
+ /**
+ * @param simple_response pointer to simple response struct
+ * @param env pointer to environment struct
+ * @param headers double pointer to headers
+ * @param array_size
+ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+ */
+ AXIS2_EXTERN axis2_status_t AXIS2_CALL
+
+ axis2_http_simple_response_set_headers(
+ axis2_http_simple_response_t * simple_response,
+ const axutil_env_t * env,
+ axis2_http_header_t ** headers,
axis2_ssize_t array_size);
- /**
- * @param simple_response pointer to simple response struct
- * @param env pointer to environment struct
- */
- AXIS2_EXTERN const axis2_char_t* AXIS2_CALL
- axis2_http_simple_response_get_charset(axis2_http_simple_response_t *simple_response,
- const axutil_env_t *env);
-
- /**
- * @param simple_response pointer to simple response struct
- * @param env pointer to environment struct
- */
- AXIS2_EXTERN axis2_ssize_t AXIS2_CALL
- axis2_http_simple_response_get_content_length(axis2_http_simple_response_t *simple_response,
- const axutil_env_t *env);
-
- /**
- * @param simple_response pointer to simple response struct
- * @param env pointer to environment struct
- */
- AXIS2_EXTERN const axis2_char_t* AXIS2_CALL
- axis2_http_simple_response_get_content_type(axis2_http_simple_response_t *simple_response,
- const axutil_env_t *env);
-
- /**
- * @param simple_response pointer to simple response struct
- * @param env pointer to environment struct
- * @param str pointer to str
- * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
- */
- AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_simple_response_set_body_string(axis2_http_simple_response_t *simple_response,
- const axutil_env_t *env,
- axis2_char_t *str);
-
- /**
- * @param simple_response pointer to simple response struct
- * @param env pointer to environment struct
- * @param stream pointer to stream
- * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
- */
- AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_simple_response_set_body_stream(axis2_http_simple_response_t *simple_response,
- const axutil_env_t *env,
- axutil_stream_t *stream);
-
- /**
- * @param simple_response pointer to simple response struct
- * @param env pointer to environment struct
- */
- AXIS2_EXTERN axutil_stream_t* AXIS2_CALL
- axis2_http_simple_response_get_body(axis2_http_simple_response_t *simple_response,
- const axutil_env_t *env);
-
- /**
- * @param simple_response pointer to simple response struct
- * @param env pointer to environment struct
- * @param buf double pointer to buf
- */
+ /**
+ * @param simple_response pointer to simple response struct
+ * @param env pointer to environment struct
+ */
+ AXIS2_EXTERN const axis2_char_t *AXIS2_CALL
+
+ axis2_http_simple_response_get_charset(
+ axis2_http_simple_response_t * simple_response,
+ const axutil_env_t * env);
+
+ /**
+ * @param simple_response pointer to simple response struct
+ * @param env pointer to environment struct
+ */
+ AXIS2_EXTERN axis2_ssize_t AXIS2_CALL
+
+ axis2_http_simple_response_get_content_length(
+ axis2_http_simple_response_t * simple_response,
+ const axutil_env_t * env);
+
+ /**
+ * @param simple_response pointer to simple response struct
+ * @param env pointer to environment struct
+ */
+ AXIS2_EXTERN const axis2_char_t *AXIS2_CALL
+
+ axis2_http_simple_response_get_content_type(
+ axis2_http_simple_response_t * simple_response,
+ const axutil_env_t * env);
+
+ /**
+ * @param simple_response pointer to simple response struct
+ * @param env pointer to environment struct
+ * @param str pointer to str
+ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+ */
+ AXIS2_EXTERN axis2_status_t AXIS2_CALL
+
+ axis2_http_simple_response_set_body_string(
+ axis2_http_simple_response_t * simple_response,
+ const axutil_env_t * env,
+ axis2_char_t * str);
+
+ /**
+ * @param simple_response pointer to simple response struct
+ * @param env pointer to environment struct
+ * @param stream pointer to stream
+ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+ */
+ AXIS2_EXTERN axis2_status_t AXIS2_CALL
+
+ axis2_http_simple_response_set_body_stream(
+ axis2_http_simple_response_t * simple_response,
+ const axutil_env_t * env,
+ axutil_stream_t * stream);
+
+ /**
+ * @param simple_response pointer to simple response struct
+ * @param env pointer to environment struct
+ */
+ AXIS2_EXTERN axutil_stream_t *AXIS2_CALL
+
+ axis2_http_simple_response_get_body(
+ axis2_http_simple_response_t * simple_response,
+ const axutil_env_t * env);
+
+ /**
+ * @param simple_response pointer to simple response struct
+ * @param env pointer to environment struct
+ * @param buf double pointer to buf
+ */
AXIS2_EXTERN axis2_ssize_t AXIS2_CALL
- axis2_http_simple_response_get_body_bytes(axis2_http_simple_response_t *simple_response,
- const axutil_env_t *env,
- axis2_char_t **buf);
-
- /**
- * @param simple_response pointer to simple response struct
- * @param env pointer to environment struct
- * @return void
- */
+
+ axis2_http_simple_response_get_body_bytes(
+ axis2_http_simple_response_t * simple_response,
+ const axutil_env_t * env,
+ axis2_char_t ** buf);
+
+ /**
+ * @param simple_response pointer to simple response struct
+ * @param env pointer to environment struct
+ * @return void
+ */
AXIS2_EXTERN void AXIS2_CALL
- axis2_http_simple_response_free(axis2_http_simple_response_t *simple_response,
- const axutil_env_t *env);
+ axis2_http_simple_response_free(
+ axis2_http_simple_response_t * simple_response,
+ const axutil_env_t * env);
/**
* @param env pointer to environment struct
@@ -236,23 +272,24 @@
* @param http_hdr_count
* @param content pointer to content
*/
- AXIS2_EXTERN axis2_http_simple_response_t * AXIS2_CALL
- axis2_http_simple_response_create (
- const axutil_env_t *env,
- axis2_http_status_line_t *status_line,
- const axis2_http_header_t **http_headers,
- const axis2_ssize_t http_hdr_count,
- axutil_stream_t *content);
+ AXIS2_EXTERN axis2_http_simple_response_t *AXIS2_CALL
+
+ axis2_http_simple_response_create(
+ const axutil_env_t * env,
+ axis2_http_status_line_t * status_line,
+ const axis2_http_header_t ** http_headers,
+ const axis2_ssize_t http_hdr_count,
+ axutil_stream_t * content);
/**
* @param env pointer to environment struct
*/
- AXIS2_EXTERN axis2_http_simple_response_t * AXIS2_CALL
- axis2_http_simple_response_create_default(
- const axutil_env_t *env);
+ AXIS2_EXTERN axis2_http_simple_response_t *AXIS2_CALL
+ axis2_http_simple_response_create_default(
+ const axutil_env_t * env);
-/** @} */
+ /** @} */
#ifdef __cplusplus
}
#endif
Modified: webservices/axis2/trunk/c/include/axis2_http_status_line.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_http_status_line.h?rev=580274&r1=580273&r2=580274&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_status_line.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_status_line.h Fri Sep 28 02:47:09 2007
@@ -1,3 +1,4 @@
+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -33,7 +34,6 @@
#include <axis2_defines.h>
#include <axutil_env.h>
-
#ifdef __cplusplus
extern "C"
{
@@ -47,40 +47,48 @@
* @param env pointer to environment struct
*/
AXIS2_EXTERN int AXIS2_CALL
- axis2_http_status_line_get_status_code(const axis2_http_status_line_t *status_line,
- const axutil_env_t *env);
+ axis2_http_status_line_get_status_code(
+ const axis2_http_status_line_t * status_line,
+ const axutil_env_t * env);
/**
* @param status_line pointer to status line
* @param env pointer to environment struct
*/
AXIS2_EXTERN axis2_char_t *AXIS2_CALL
- axis2_http_status_line_get_http_version(const axis2_http_status_line_t *status_line,
- const axutil_env_t *env);
+
+ axis2_http_status_line_get_http_version(
+ const axis2_http_status_line_t * status_line,
+ const axutil_env_t * env);
/**
* @param status_line pointer to status line
* @param env pointer to environment struct
*/
AXIS2_EXTERN axis2_char_t *AXIS2_CALL
- axis2_http_status_line_get_reason_phrase(const axis2_http_status_line_t *status_line,
- const axutil_env_t *env);
+
+ axis2_http_status_line_get_reason_phrase(
+ const axis2_http_status_line_t * status_line,
+ const axutil_env_t * env);
/**
* @param status_line pointer to status line
* @param env pointer to environment struct
*/
AXIS2_EXTERN axis2_bool_t AXIS2_CALL
- axis2_http_status_line_starts_with_http(axis2_http_status_line_t *status_line,
- const axutil_env_t *env);
+
+ axis2_http_status_line_starts_with_http(
+ axis2_http_status_line_t * status_line,
+ const axutil_env_t * env);
/**
* @param status_line pointer to status line
* @param env pointer to environment struct
*/
AXIS2_EXTERN axis2_char_t *AXIS2_CALL
- axis2_http_status_line_to_string(axis2_http_status_line_t *status_line,
- const axutil_env_t *env);
+ axis2_http_status_line_to_string(
+ axis2_http_status_line_t * status_line,
+ const axutil_env_t * env);
/**
* @param status_line pointer to status line
@@ -88,19 +96,22 @@
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
AXIS2_EXTERN void AXIS2_CALL
- axis2_http_status_line_free(axis2_http_status_line_t *status_line,
- const axutil_env_t *env);
+ axis2_http_status_line_free(
+ axis2_http_status_line_t * status_line,
+ const axutil_env_t * env);
/**
* @param env pointer to environment struct
* @param str pointer to str
*/
AXIS2_EXTERN axis2_http_status_line_t *AXIS2_CALL
- axis2_http_status_line_create(const axutil_env_t *env,
- const axis2_char_t *str);
-/** @} */
+ axis2_http_status_line_create(
+ const axutil_env_t * env,
+ const axis2_char_t * str);
+
+ /** @} */
#ifdef __cplusplus
}
#endif
-#endif /* AXIS2_HTTP_STATUS_LINE_H */
+#endif /* AXIS2_HTTP_STATUS_LINE_H */
Modified: webservices/axis2/trunk/c/include/axis2_http_svr_thread.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_http_svr_thread.h?rev=580274&r1=580273&r2=580274&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_svr_thread.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_svr_thread.h Fri Sep 28 02:47:09 2007
@@ -1,3 +1,4 @@
+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -19,7 +20,7 @@
#define AXIS2_HTTP_SVR_THREAD_H
/**
- * @defgroup axis2_http_svr_thread http server thread
+ * @defgroup axis2_http_svr_thread http server thread
* @ingroup axis2_core_trans_http
* @{
*/
@@ -47,32 +48,36 @@
* @param env pointer to environment struct
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_svr_thread_run(axis2_http_svr_thread_t *svr_thread,
- const axutil_env_t *env);
+ axis2_http_svr_thread_run(
+ axis2_http_svr_thread_t * svr_thread,
+ const axutil_env_t * env);
/**
* @param svr_thread pointer to server thread
* @param env pointer to environment struct
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_svr_thread_destroy(axis2_http_svr_thread_t *svr_thread,
- const axutil_env_t *env);
+ axis2_http_svr_thread_destroy(
+ axis2_http_svr_thread_t * svr_thread,
+ const axutil_env_t * env);
/**
* @param svr_thread pointer to server thread
* @param env pointer to environment struct
*/
AXIS2_EXTERN int AXIS2_CALL
- axis2_http_svr_thread_get_local_port(const axis2_http_svr_thread_t *svr_thread,
- const axutil_env_t *env);
+ axis2_http_svr_thread_get_local_port(
+ const axis2_http_svr_thread_t * svr_thread,
+ const axutil_env_t * env);
/**
* @param svr_thread pointer to server thread
* @param env pointer to environment struct
*/
AXIS2_EXTERN axis2_bool_t AXIS2_CALL
- axis2_http_svr_thread_is_running(axis2_http_svr_thread_t *svr_thread,
- const axutil_env_t *env);
+ axis2_http_svr_thread_is_running(
+ axis2_http_svr_thread_t * svr_thread,
+ const axutil_env_t * env);
/**
* @param svr_thread pointer to server thread
@@ -80,28 +85,31 @@
* @param worker pointer to worker
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_svr_thread_set_worker(axis2_http_svr_thread_t *svr_thread,
- const axutil_env_t *env,
- axis2_http_worker_t *worker);
+ axis2_http_svr_thread_set_worker(
+ axis2_http_svr_thread_t * svr_thread,
+ const axutil_env_t * env,
+ axis2_http_worker_t * worker);
/**
* @param svr_thread pointer to server thread
* @param env pointer to environment struct
*/
AXIS2_EXTERN void AXIS2_CALL
- axis2_http_svr_thread_free(axis2_http_svr_thread_t *svr_thread,
- const axutil_env_t *env);
+ axis2_http_svr_thread_free(
+ axis2_http_svr_thread_t * svr_thread,
+ const axutil_env_t * env);
/**
* @param env pointer to environment struct
* @param port
*/
AXIS2_EXTERN axis2_http_svr_thread_t *AXIS2_CALL
- axis2_http_svr_thread_create (
- const axutil_env_t *env,
+
+ axis2_http_svr_thread_create(
+ const axutil_env_t * env,
int port);
-/** @} */
+ /** @} */
#ifdef __cplusplus
}
#endif
Modified: webservices/axis2/trunk/c/include/axis2_http_transport.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_http_transport.h?rev=580274&r1=580273&r2=580274&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_transport.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_transport.h Fri Sep 28 02:47:09 2007
@@ -1,3 +1,4 @@
+
/*
* Copyright 2004,2005 The Apache Software Foundation.
*
@@ -24,481 +25,481 @@
{
#endif
-/** @defgroup axis2_core_trans_http http transport
- * @ingroup axis2_transport
- * Description.
- * @{
- */
-
-/**
- * @defgroup axis2_core_transport_http core http transport
- * @ingroup axis2_core_trans_http
- * @{
- */
-
-/**
- * @brief HTTP protocol and message context constants.
- *
- */
+ /** @defgroup axis2_core_trans_http http transport
+ * @ingroup axis2_transport
+ * Description.
+ * @{
+ */
+
+ /**
+ * @defgroup axis2_core_transport_http core http transport
+ * @ingroup axis2_core_trans_http
+ * @{
+ */
+
+ /**
+ * @brief HTTP protocol and message context constants.
+ *
+ */
#define AXIS2_HTTP_OUT_TRANSPORT_INFO "HTTPOutTransportInfo"
-/**
- * CARRIAGE RETURN AND LINE FEED
- */
+ /**
+ * CARRIAGE RETURN AND LINE FEED
+ */
#define AXIS2_HTTP_CRLF "\r\n"
-/**
- * PROTOCOL_VERSION
- */
+ /**
+ * PROTOCOL_VERSION
+ */
#define AXIS2_HTTP_PROTOCOL_VERSION "PROTOCOL"
-/**
- * REQUEST_URI
- */
+ /**
+ * REQUEST_URI
+ */
#define AXIS2_HTTP_REQUEST_URI "REQUEST_URI"
-/**
- * RESPONSE_CODE
- */
+ /**
+ * RESPONSE_CODE
+ */
#define AXIS2_HTTP_RESPONSE_CODE "RESPONSE_CODE"
-/**
- * RESPONSE_WORD
- */
+ /**
+ * RESPONSE_WORD
+ */
#define AXIS2_HTTP_RESPONSE_WORD "RESPONSE_WORD"
-/**
- * AXIS2_HTTP_RESPONSE_HTTP_UNAUTHORIZED_CODE_VAL
- */
+ /**
+ * AXIS2_HTTP_RESPONSE_HTTP_UNAUTHORIZED_CODE_VAL
+ */
#define AXIS2_HTTP_RESPONSE_HTTP_UNAUTHORIZED_CODE_VAL 401
-/**
- * RESPONSE_ACK_CODE_VAL
- */
+ /**
+ * RESPONSE_ACK_CODE_VAL
+ */
#define AXIS2_HTTP_RESPONSE_ACK_CODE_VAL 202
-/*
- * RESPONSE_OK_CODE_VAL
- */
+ /*
+ * RESPONSE_OK_CODE_VAL
+ */
#define AXIS2_HTTP_RESPONSE_OK_CODE_VAL 200
-/*
- * RESPONSE_CONTINUE_CODE_VAL
- */
+ /*
+ * RESPONSE_CONTINUE_CODE_VAL
+ */
#define AXIS2_HTTP_RESPONSE_CONTINUE_CODE_VAL 100
-/*
- * RESPONSE_INTERNAL_SERVER_ERROR_CODE_VAL
- */
+ /*
+ * RESPONSE_INTERNAL_SERVER_ERROR_CODE_VAL
+ */
#define AXIS2_HTTP_RESPONSE_INTERNAL_SERVER_ERROR_CODE_VAL 500
-/**
- * SOCKET
- */
+ /**
+ * SOCKET
+ */
#define AXIS2_SOCKET "SOCKET"
-/**
- * HEADER_PROTOCOL_10
- */
+ /**
+ * HEADER_PROTOCOL_10
+ */
#define AXIS2_HTTP_HEADER_PROTOCOL_10 "HTTP/1.0"
-/**
- * HEADER_PROTOCOL_11
- */
+ /**
+ * HEADER_PROTOCOL_11
+ */
#define AXIS2_HTTP_HEADER_PROTOCOL_11 "HTTP/1.1"
-/**
- * CHAR_SET_ENCODING
- */
+ /**
+ * CHAR_SET_ENCODING
+ */
#define AXIS2_HTTP_CHAR_SET_ENCODING "charset"
-/**
- * HEADER_POST
- */
+ /**
+ * HEADER_POST
+ */
#define AXIS2_HTTP_POST "POST"
-/**
- * HEADER_GET
- */
+ /**
+ * HEADER_GET
+ */
#define AXIS2_HTTP_GET "GET"
-/**
- * HEADER_HOST
- */
+ /**
+ * HEADER_HOST
+ */
#define AXIS2_HTTP_HEADER_HOST "Host"
-/**
- * HEADER_CONTENT_DESCRIPTION
- */
+ /**
+ * HEADER_CONTENT_DESCRIPTION
+ */
#define AXIS2_HTP_HEADER_CONTENT_DESCRIPTION "Content-Description"
-/**
- * HEADER_CONTENT_TYPE
- */
+ /**
+ * HEADER_CONTENT_TYPE
+ */
#define AXIS2_HTTP_HEADER_CONTENT_TYPE "Content-Type"
#define AXIS2_HTTP_HEADER_CONTENT_TYPE_ "Content-Type:"
-/**
- *USER DEFINED HEADER CONTENT TYPE
- */
+ /**
+ *USER DEFINED HEADER CONTENT TYPE
+ */
#define AXIS2_USER_DEFINED_HTTP_HEADER_CONTENT_TYPE "User_Content_Type"
-/**
- * HEADER_CONTENT_TYPE
- */
+ /**
+ * HEADER_CONTENT_TYPE
+ */
#define AXIS2_HTTP_HEADER_CONTENT_TYPE_MIME_BOUNDARY "boundary"
-/**
- * HEADER_CONTENT_TRANSFER_ENCODING
- */
+ /**
+ * HEADER_CONTENT_TRANSFER_ENCODING
+ */
#define AXIS2_HTTP_HEADER_CONTENT_TRANSFER_ENCODING \
"Content-Transfer-Encoding"
-/**
- * HEADER_CONTENT_LENGTH
- */
+ /**
+ * HEADER_CONTENT_LENGTH
+ */
#define AXIS2_HTTP_HEADER_CONTENT_LENGTH "Content-Length"
#define AXIS2_HTTP_HEADER_CONTENT_LENGTH_ "Content-Length:"
-/**
- * HEADER_CONTENT_LOCATION
- */
+ /**
+ * HEADER_CONTENT_LOCATION
+ */
#define AXIS2_HTTP_HEADER_CONTENT_LOCATION "Content-Location"
-/**
- * HEADER_CONTENT_ID
- */
+ /**
+ * HEADER_CONTENT_ID
+ */
#define AXIS2_HTTP_HEADER_CONTENT_ID "Content-Id"
-/**
- * HEADER_SOAP_ACTION
- */
+ /**
+ * HEADER_SOAP_ACTION
+ */
#define AXIS2_HTTP_HEADER_SOAP_ACTION "SOAPAction"
#define AXIS2_HTTP_HEADER_SOAP_ACTION_ "SOAPAction:"
-/**
- * HEADER_AUTHORIZATION
- */
+ /**
+ * HEADER_AUTHORIZATION
+ */
#define AXIS2_HTTP_HEADER_AUTHORIZATION "Authorization"
-/**
- * HEADER_WWW_AUTHENTICATE
- */
+ /**
+ * HEADER_WWW_AUTHENTICATE
+ */
#define AXIS2_HTTP_HEADER_WWW_AUTHENTICATE "WWW-Authenticate"
-/**
- * HEADER_PROXY_AUTHORIZATION
- */
+ /**
+ * HEADER_PROXY_AUTHORIZATION
+ */
#define AXIS2_HTTP_HEADER_PROXY_AUTHORIZATION "Proxy-Authorization"
-/**
- * HEADER_EXPECT
- */
+ /**
+ * HEADER_EXPECT
+ */
#define AXIS2_HTTP_HEADER_EXPECT "Expect"
-/**
- * HEADER_EXPECT_100_Continue
- */
+ /**
+ * HEADER_EXPECT_100_Continue
+ */
#define AXIS2_HTTP_HEADER_EXPECT_100_CONTINUE "100-continue"
-/**
- * HEADER_USER_AGENT
- */
+ /**
+ * HEADER_USER_AGENT
+ */
#define AXIS2_HTTP_HEADER_USER_AGENT "User-Agent"
-/**
- * HEADER_USER_AGENT_AXIS2C
- */
+ /**
+ * HEADER_USER_AGENT_AXIS2C
+ */
#define AXIS2_HTTP_HEADER_USER_AGENT_AXIS2C "User-Agent:Axis2/C"
#define AXIS2_HTTP_HEADER_ACCEPT_ "Accept:"
#define AXIS2_HTTP_HEADER_EXPECT_ "Expect:"
-/**
- * HEADER_CACHE_CONTROL
- */
+
+ /**
+ * HEADER_CACHE_CONTROL
+ */
#define AXIS2_HTTP_HEADER_CACHE_CONTROL "Cache-Control"
-/**
- * HEADER_CACHE_CONTROL_NOCACHE
- */
+ /**
+ * HEADER_CACHE_CONTROL_NOCACHE
+ */
#define AXIS2_HTTP_HEADER_CACHE_CONTROL_NOCACHE "no-cache"
-/**
- * HEADER_PRAGMA
- */
+ /**
+ * HEADER_PRAGMA
+ */
#define AXIS2_HTTP_HEADER_PRAGMA "Pragma"
-/**
- * HEADER_LOCATION
- */
+ /**
+ * HEADER_LOCATION
+ */
#define AXIS2_HTTP_HEADER_LOCATION "Location"
-/**
- * REQUEST_HEADERS
- */
+ /**
+ * REQUEST_HEADERS
+ */
#define AXIS2_HTTP_REQUEST_HEADERS "HTTP-Request-Headers"
-/**
- * RESPONSE_HEADERS
- */
+ /**
+ * RESPONSE_HEADERS
+ */
#define AXIS2_HTTP_RESPONSE_HEADERS "HTTP-Response-Headers"
/* http 1.1 */
-/**
- * HEADER_TRANSFER_ENCODING
- */
+ /**
+ * HEADER_TRANSFER_ENCODING
+ */
#define AXIS2_HTTP_HEADER_TRANSFER_ENCODING "Transfer-Encoding"
-/**
- * HEADER_TRANSFER_ENCODING_CHUNKED
- */
+ /**
+ * HEADER_TRANSFER_ENCODING_CHUNKED
+ */
#define AXIS2_HTTP_HEADER_TRANSFER_ENCODING_CHUNKED "chunked"
-/**
- * HEADER_CONNECTION
- */
+ /**
+ * HEADER_CONNECTION
+ */
#define AXIS2_HTTP_HEADER_CONNECTION "Connection"
-/**
- * HEADER_CONNECTION_CLOSE
- */
+ /**
+ * HEADER_CONNECTION_CLOSE
+ */
#define AXIS2_HTTP_HEADER_CONNECTION_CLOSE "close"
-/**
- * HEADER_CONNECTION_KEEPALIVE
- */
+ /**
+ * HEADER_CONNECTION_KEEPALIVE
+ */
#define AXIS2_HTTP_HEADER_CONNECTION_KEEPALIVE "Keep-Alive"
-/**
- * HEADER_ACCEPT
- */
+ /**
+ * HEADER_ACCEPT
+ */
#define AXIS2_HTTP_HEADER_ACCEPT "Accept"
-/**
- * HEADER_ACCEPT_TEXT_ALL
- */
+ /**
+ * HEADER_ACCEPT_TEXT_ALL
+ */
#define AXIS2_HTTP_HEADER_ACCEPT_TEXT_ALL "text/*"
-/**
- * HEADER_ACCEPT_TEXT_PLAIN
- */
+ /**
+ * HEADER_ACCEPT_TEXT_PLAIN
+ */
#define AXIS2_HTTP_HEADER_ACCEPT_TEXT_PLAIN "text/plain"
-/**
- * HEADER_ACCEPT_TEXT_HTML
- */
+ /**
+ * HEADER_ACCEPT_TEXT_HTML
+ */
#define AXIS2_HTTP_HEADER_ACCEPT_TEXT_HTML "text/html"
-/**
- * HEADER_ACCEPT_TEXT_XML
- */
+ /**
+ * HEADER_ACCEPT_TEXT_XML
+ */
#define AXIS2_HTTP_HEADER_ACCEPT_TEXT_XML "text/xml"
-/**
- * HEADER_ACCEPT_APPL_SOAP
- */
+ /**
+ * HEADER_ACCEPT_APPL_SOAP
+ */
#define AXIS2_HTTP_HEADER_ACCEPT_APPL_SOAP "application/soap+xml"
-/**
- * HEADER_ACCEPT_X_WWW_FROM_URLENCODED
- */
+ /**
+ * HEADER_ACCEPT_X_WWW_FROM_URLENCODED
+ */
#define AXIS2_HTTP_HEADER_ACCEPT_X_WWW_FROM_URLENCODED "application/x-www-form-urlencoded"
-
-/**
- * HEADER XOP XML
- */
+ /**
+ * HEADER XOP XML
+ */
#define AXIS2_HTTP_HEADER_XOP_XML "application/xop+xml"
-/**
- * HEADER_ACCEPT_MULTIPART_RELATED
- */
+ /**
+ * HEADER_ACCEPT_MULTIPART_RELATED
+ */
#define AXIS2_HTTP_HEADER_ACCEPT_MULTIPART_RELATED "multipart/related"
-/**
- * HEADER_ACCEPT_APPLICATION_DIME
- */
+ /**
+ * HEADER_ACCEPT_APPLICATION_DIME
+ */
#define AXIS2_HTTP_HEADER_ACCEPT_APPLICATION_DIME "application/dime"
-/**
- * Cookie headers
- */
+ /**
+ * Cookie headers
+ */
#define AXIS2_HTTP_HEADER_COOKIE "Cookie"
-/**
- * HEADER_COOKIE2
- */
+ /**
+ * HEADER_COOKIE2
+ */
#define AXIS2_HTTP_HEADER_COOKIE2 "Cookie2"
-/**
- * HEADER_SET_COOKIE
- */
+ /**
+ * HEADER_SET_COOKIE
+ */
#define AXIS2_HTTP_HEADER_SET_COOKIE "Set-Cookie"
-/**
- * HEADER_SET_COOKIE2
- */
+ /**
+ * HEADER_SET_COOKIE2
+ */
#define AXIS2_HTTP_HEADER_SET_COOKIE2 "Set-Cookie2"
-/**
- * HTTP header field values
- */
+ /**
+ * HTTP header field values
+ */
#define AXIS2_HTTP_HEADER_DEFAULT_CHAR_ENCODING "iso-8859-1"
-/**
- * REPONSE_HTTP_OK
- */
+ /**
+ * REPONSE_HTTP_OK
+ */
#define AXIS2_HTTP_RESPONSE_OK "200 OK"
-/**
- * RESPONSE_HTTP_NOCONTENT
- */
+ /**
+ * RESPONSE_HTTP_NOCONTENT
+ */
#define AXIS2_HTTP_RESPONSE_NOCONTENT "202 OK";
-/**
- * RESPONSE_HTTP_UNAUTHORIZED
- */
+ /**
+ * RESPONSE_HTTP_UNAUTHORIZED
+ */
#define AXIS2_HTTP_RESPONSE_HTTP_UNAUTHORIZED "401 Unauthorized"
-/**
- * RESPONSE_BAD_REQUEST
- */
+ /**
+ * RESPONSE_BAD_REQUEST
+ */
#define AXIS2_HTTP_RESPONSE_BAD_REQUEST "400 Bad Request"
-/**
- * RESPONSE_HTTP_INTERNAL_SERVER_ERROR
- */
+ /**
+ * RESPONSE_HTTP_INTERNAL_SERVER_ERROR
+ */
#define AXIS2_HTTP_RESPONSE_INTERNAL_SERVER_ERROR "500 Internal server error"
-/**
- * HTTP_REQ_TYPE
- */
+ /**
+ * HTTP_REQ_TYPE
+ */
#define AXIS2_HTTP_REQ_TYPE "HTTP_REQ_TYPE"
-/**
- * SO_TIMEOUT
- */
+ /**
+ * SO_TIMEOUT
+ */
#define AXIS2_HTTP_SO_TIMEOUT "SO_TIMEOUT"
-/**
- * CONNECTION_TIMEOUT
- */
+ /**
+ * CONNECTION_TIMEOUT
+ */
#define AXIS2_HTTP_CONNECTION_TIMEOUT "CONNECTION_TIMEOUT"
-/**
- * DEFAULT_SO_TIMEOUT
- */
+ /**
+ * DEFAULT_SO_TIMEOUT
+ */
#define AXIS2_HTTP_DEFAULT_SO_TIMEOUT 60000
-/**
- * DEFAULT_CONNECTION_TIMEOUT
- */
+ /**
+ * DEFAULT_CONNECTION_TIMEOUT
+ */
#define AXIS2_HTTP_DEFAULT_CONNECTION_TIMEOUT 60000
#define AXIS2_HTTP_PROXY "PROXY"
-/**
- * ISO-8859-1 encoding
- */
+ /**
+ * ISO-8859-1 encoding
+ */
#define AXIS2_HTTP_ISO_8859_1 "ISO-8859-1"
-/**
- * Default charset in content
- */
+ /**
+ * Default charset in content
+ */
#define AXIS2_HTTP_DEFAULT_CONTENT_CHARSET "ISO-8859-1"
-/**
- * Field TRANSPORT_HTTP
- */
+ /**
+ * Field TRANSPORT_HTTP
+ */
#define AXIS2_TRANSPORT_HTTP "http"
-/**
- * Msg context response written key
- */
+ /**
+ * Msg context response written key
+ */
#define AXIS2_RESPONSE_WRITTEN "CONTENT_WRITTEN"
-/**
- * Content type for MTOM
- */
+ /**
+ * Content type for MTOM
+ */
#define MTOM_RECIVED_CONTENT_TYPE "MTOM_RECEIVED"
-/**
- * Constant for HTTP proxy
- */
+ /**
+ * Constant for HTTP proxy
+ */
#define AXIS2_HTTP_PROXY "PROXY"
-/**
- * Constant for HTTP proxy host
- */
+ /**
+ * Constant for HTTP proxy host
+ */
#define AXIS2_HTTP_PROXY_HOST "proxy_host"
-/**
- * Constant for HTTP proxy port
- */
+ /**
+ * Constant for HTTP proxy port
+ */
#define AXIS2_HTTP_PROXY_PORT "proxy_port"
#define AXIS2_HTTP_PROXY_API "PROXY_API"
-/**
- * Constant for HTTP method
- */
+ /**
+ * Constant for HTTP method
+ */
#define AXIS2_HTTP_METHOD "HTTP_METHOD"
-/**
- * Constant for SSL Server Certificate
- */
+ /**
+ * Constant for SSL Server Certificate
+ */
#define AXIS2_SSL_SERVER_CERT "SERVER_CERT"
-/**
- * Constant for SSL Key File
- */
+ /**
+ * Constant for SSL Key File
+ */
#define AXIS2_SSL_KEY_FILE "KEY_FILE"
-/**
- * Constant for SSL Passphrase
- */
+ /**
+ * Constant for SSL Passphrase
+ */
#define AXIS2_SSL_PASSPHRASE "SSL_PASSPHRASE"
-/**
- * HTTP authentication username property name
- */
+ /**
+ * HTTP authentication username property name
+ */
#define AXIS2_HTTP_AUTH_UNAME "HTTP_AUTH_USERNAME"
-/**
- * HTTP authentication password property name
- */
+ /**
+ * HTTP authentication password property name
+ */
#define AXIS2_HTTP_AUTH_PASSWD "HTTP_AUTH_PASSWD"
-/*#define AXIS2_HTTP_AUTH_TYPE "HTTP_AUTH_TYPE"*/
+ /*#define AXIS2_HTTP_AUTH_TYPE "HTTP_AUTH_TYPE"*/
-/**
- * HTTP "Basic" authentication
- */
+ /**
+ * HTTP "Basic" authentication
+ */
#define AXIS2_HTTP_AUTH_TYPE_BASIC "Basic"
-/**
- * HTTP "Digest" authentication
- */
+ /**
+ * HTTP "Digest" authentication
+ */
#define AXIS2_HTTP_AUTH_TYPE_DIGEST "Digest"
-/**
- *HTTP Transport Level Error
- */
+ /**
+ *HTTP Transport Level Error
+ */
#define AXIS2_HTTP_TRANSPORT_ERROR "http_transport_error"
-/**
- *415 Unsupported media Type
- */
+ /**
+ *415 Unsupported media Type
+ */
#define AXIS2_HTTP_UNSUPPORTED_MEDIA_TYPE "415 Unsupported Media Type\r\n"
-/**
- *Constant for HTTP headers that user specify, Those headers will
- *provided as property to the message context.
- */
+ /**
+ *Constant for HTTP headers that user specify, Those headers will
+ *provided as property to the message context.
+ */
#define AXIS2_TRANSPORT_HEADER_PROPERTY "HTTP_HEADER_PROPERTY"
/** @} */
Modified: webservices/axis2/trunk/c/include/axis2_http_transport_sender.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_http_transport_sender.h?rev=580274&r1=580273&r2=580274&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_transport_sender.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_transport_sender.h Fri Sep 28 02:47:09 2007
@@ -1,3 +1,4 @@
+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -46,9 +47,9 @@
* @param env pointer to environment struct
*/
AXIS2_EXTERN axis2_transport_sender_t *AXIS2_CALL
- axis2_http_transport_sender_create(
- const axutil_env_t *env);
+ axis2_http_transport_sender_create(
+ const axutil_env_t * env);
/** @} */
#ifdef __cplusplus
Modified: webservices/axis2/trunk/c/include/axis2_http_transport_utils.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_http_transport_utils.h?rev=580274&r1=580273&r2=580274&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_transport_utils.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_transport_utils.h Fri Sep 28 02:47:09 2007
@@ -1,3 +1,4 @@
+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -23,7 +24,6 @@
* @{
*/
-
/**
* @file axis2_http_transport_utils.h
* @brief axis2 HTTP Transport Utility class
@@ -47,7 +47,6 @@
{
#endif
-
/*
* struct to hold the callback information
*/
@@ -62,80 +61,90 @@
typedef struct axis2_callback_info axis2_callback_info_t;
AXIS2_EXTERN axis2_status_t AXIS2_CALL
+
axis2_http_transport_utils_process_http_post_request(
- const axutil_env_t *env,
- axis2_msg_ctx_t *msg_ctx,
- axutil_stream_t *in_stream,
- axutil_stream_t *out_stream,
- const axis2_char_t *content_type,
+ const axutil_env_t * env,
+ axis2_msg_ctx_t * msg_ctx,
+ axutil_stream_t * in_stream,
+ axutil_stream_t * out_stream,
+ const axis2_char_t * content_type,
const int content_length,
- axutil_string_t *soap_action_header,
- const axis2_char_t *request_uri);
+ axutil_string_t * soap_action_header,
+ const axis2_char_t * request_uri);
AXIS2_EXTERN axis2_bool_t AXIS2_CALL
+
axis2_http_transport_utils_process_http_get_request(
- const axutil_env_t *env,
- axis2_msg_ctx_t *msg_ctx,
- axutil_stream_t *in_stream,
- axutil_stream_t *out_stream,
- const axis2_char_t *content_type,
- axutil_string_t *soap_action_header,
- const axis2_char_t *request_uri,
- axis2_conf_ctx_t *conf_ctx,
- axutil_hash_t *request_params);
+ const axutil_env_t * env,
+ axis2_msg_ctx_t * msg_ctx,
+ axutil_stream_t * in_stream,
+ axutil_stream_t * out_stream,
+ const axis2_char_t * content_type,
+ axutil_string_t * soap_action_header,
+ const axis2_char_t * request_uri,
+ axis2_conf_ctx_t * conf_ctx,
+ axutil_hash_t * request_params);
AXIS2_EXTERN axiom_stax_builder_t *AXIS2_CALL
+
axis2_http_transport_utils_select_builder_for_mime(
- const axutil_env_t *env,
- axis2_char_t *request_uri,
- axis2_msg_ctx_t *msg_ctx,
- axutil_stream_t *in_stream,
- axis2_char_t *content_type);
+ const axutil_env_t * env,
+ axis2_char_t * request_uri,
+ axis2_msg_ctx_t * msg_ctx,
+ axutil_stream_t * in_stream,
+ axis2_char_t * content_type);
AXIS2_EXTERN axis2_bool_t AXIS2_CALL
+
axis2_http_transport_utils_do_write_mtom(
- const axutil_env_t *env,
- axis2_msg_ctx_t *msg_ctx);
+ const axutil_env_t * env,
+ axis2_msg_ctx_t * msg_ctx);
AXIS2_EXTERN axis2_bool_t AXIS2_CALL
+
axis2_http_transport_utils_is_doing_rest(
- const axutil_env_t *env,
- axis2_msg_ctx_t *msg_ctx);
+ const axutil_env_t * env,
+ axis2_msg_ctx_t * msg_ctx);
AXIS2_EXTERN axis2_bool_t AXIS2_CALL
+
axis2_http_transport_utils_is_doing_rest_through_post(
- const axutil_env_t *env,
- axis2_msg_ctx_t *msg_ctx);
+ const axutil_env_t * env,
+ axis2_msg_ctx_t * msg_ctx);
AXIS2_EXTERN axutil_hash_t *AXIS2_CALL
+
axis2_http_transport_utils_get_request_params(
- const axutil_env_t *env,
- axis2_char_t *request_uri);
+ const axutil_env_t * env,
+ axis2_char_t * request_uri);
AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+
axis2_http_transport_utils_get_services_html(
- const axutil_env_t *env,
- axis2_conf_ctx_t *conf_ctx);
+ const axutil_env_t * env,
+ axis2_conf_ctx_t * conf_ctx);
AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+
axis2_http_transport_utils_get_services_static_wsdl(
- const axutil_env_t *env,
- axis2_conf_ctx_t *conf_ctx,
- axis2_char_t *request_url);
+ const axutil_env_t * env,
+ axis2_conf_ctx_t * conf_ctx,
+ axis2_char_t * request_url);
AXIS2_EXTERN axutil_hash_t *AXIS2_CALL
+
axis2_http_transport_utils_get_request_params(
- const axutil_env_t *env,
- axis2_char_t *request_uri);
+ const axutil_env_t * env,
+ axis2_char_t * request_uri);
AXIS2_EXTERN axiom_soap_envelope_t *AXIS2_CALL
- axis2_http_transport_utils_create_soap_msg(
- const axutil_env_t *env,
- axis2_msg_ctx_t *msg_ctx,
- const axis2_char_t *soap_ns_uri);
+ axis2_http_transport_utils_create_soap_msg(
+ const axutil_env_t * env,
+ axis2_msg_ctx_t * msg_ctx,
+ const axis2_char_t * soap_ns_uri);
-/** @} */
+ /** @} */
#ifdef __cplusplus
}
#endif
Modified: webservices/axis2/trunk/c/include/axis2_http_worker.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_http_worker.h?rev=580274&r1=580273&r2=580274&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_worker.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_worker.h Fri Sep 28 02:47:09 2007
@@ -1,3 +1,4 @@
+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -37,7 +38,6 @@
#include <axis2_http_simple_request.h>
#include <axis2_conf_ctx.h>
-
#ifdef __cplusplus
extern "C"
{
@@ -53,10 +53,11 @@
* @param simple_request pointer to simple request
*/
AXIS2_EXTERN axis2_bool_t AXIS2_CALL
- axis2_http_worker_process_request(axis2_http_worker_t *http_worker,
- const axutil_env_t *env,
- axis2_simple_http_svr_conn_t *svr_conn,
- axis2_http_simple_request_t *simple_request);
+ axis2_http_worker_process_request(
+ axis2_http_worker_t * http_worker,
+ const axutil_env_t * env,
+ axis2_simple_http_svr_conn_t * svr_conn,
+ axis2_http_simple_request_t * simple_request);
/**
* @param http_worker pointer to http worker
@@ -65,8 +66,9 @@
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_http_worker_set_svr_port(axis2_http_worker_t *http_worker,
- const axutil_env_t *env,
+ axis2_http_worker_set_svr_port(
+ axis2_http_worker_t * http_worker,
+ const axutil_env_t * env,
int port);
/**
@@ -75,29 +77,31 @@
* @return void
*/
AXIS2_EXTERN void AXIS2_CALL
- axis2_http_worker_free(axis2_http_worker_t *http_worker,
- const axutil_env_t *env);
+ axis2_http_worker_free(
+ axis2_http_worker_t * http_worker,
+ const axutil_env_t * env);
/**
* @param env pointer to environment struct
* @param conf_ctx pointer to configuration context
*/
- AXIS2_EXTERN axis2_http_worker_t * AXIS2_CALL
- axis2_http_worker_create (const axutil_env_t *env,
- axis2_conf_ctx_t *conf_ctx);
-
-/*#define AXIS2_HTTP_WORKER_PROCESS_REQUEST(http_worker, env, svr_conn,\
- simple_request) axis2_http_worker_process_request(\
- http_worker, env, svr_conn, simple_request)
-
-#define AXIS2_HTTP_WORKER_SET_SVR_PORT(http_worker, env, port) \
- axis2_http_worker_set_svr_port(http_worker, env, port)
-
-#define AXIS2_HTTP_WORKER_FREE(http_worker, env) \
- axis2_http_worker_free(http_worker, env)
-*/
+ AXIS2_EXTERN axis2_http_worker_t *AXIS2_CALL
+ axis2_http_worker_create(
+ const axutil_env_t * env,
+ axis2_conf_ctx_t * conf_ctx);
+
+ /*#define AXIS2_HTTP_WORKER_PROCESS_REQUEST(http_worker, env, svr_conn,\
+ simple_request) axis2_http_worker_process_request(\
+ http_worker, env, svr_conn, simple_request)
+
+ #define AXIS2_HTTP_WORKER_SET_SVR_PORT(http_worker, env, port) \
+ axis2_http_worker_set_svr_port(http_worker, env, port)
+
+ #define AXIS2_HTTP_WORKER_FREE(http_worker, env) \
+ axis2_http_worker_free(http_worker, env)
+ */
-/** @} */
+ /** @} */
#ifdef __cplusplus
}
#endif
Modified: webservices/axis2/trunk/c/include/axis2_listener_manager.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_listener_manager.h?rev=580274&r1=580273&r2=580274&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_listener_manager.h (original)
+++ webservices/axis2/trunk/c/include/axis2_listener_manager.h Fri Sep 28 02:47:09 2007
@@ -1,3 +1,4 @@
+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -31,7 +32,6 @@
* @{
*/
-
/**
* @file axis2_listener_manager.h
*/
@@ -48,72 +48,78 @@
/** Type name for struct axis2_listener_manager */
typedef struct axis2_listener_manager axis2_listener_manager_t;
-
/**
* Ensures that the named transport's listener is started. Starts a listener
* if it is not already started. Only one listener would be started for a given
* transport.
* @param listener_manager pointer to listener manager struct
- * @param env pointer to environment struct
+ * @param env pointer to environment struct
* @param transport name of the transport
* @param conf_ctx configuration context to pick transport info for the
* named transport
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_listener_manager_make_sure_started(axis2_listener_manager_t *listener_manager,
- const axutil_env_t *env,
+
+ axis2_listener_manager_make_sure_started(
+ axis2_listener_manager_t * listener_manager,
+ const axutil_env_t * env,
const AXIS2_TRANSPORT_ENUMS transport,
- axis2_conf_ctx_t *conf_ctx);
+ axis2_conf_ctx_t * conf_ctx);
- /**
- * Stops the named listener transport.
- * @param listener_manager pointer to listener manager struct
- * @param env pointer to environment struct
- * @param transport name of the transport whose listener is to be stopped
- * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
- */
+ /**
+ * Stops the named listener transport.
+ * @param listener_manager pointer to listener manager struct
+ * @param env pointer to environment struct
+ * @param transport name of the transport whose listener is to be stopped
+ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+ */
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_listener_manager_stop(axis2_listener_manager_t *listener_manager,
- const axutil_env_t *env,
+ axis2_listener_manager_stop(
+ axis2_listener_manager_t * listener_manager,
+ const axutil_env_t * env,
const AXIS2_TRANSPORT_ENUMS transport);
/**
* Gets reply to end point reference. The engine will direct the
* response for the message to this reply to address.
* @param listener_manager pointer to listener manager struct
- * @param env pointer to environment struct
+ * @param env pointer to environment struct
* @param svc_name name of the service for which the epr is to be returned
* @param transport name of the transport corresponding to the endpoint
* @return a pointer to endpoint reference struct representing the reply
* endpoint
*/
- AXIS2_EXTERN axis2_endpoint_ref_t* AXIS2_CALL
- axis2_listener_manager_get_reply_to_epr(const axis2_listener_manager_t *listener_manager,
- const axutil_env_t *env,
- const axis2_char_t *svc_name,
+ AXIS2_EXTERN axis2_endpoint_ref_t *AXIS2_CALL
+
+ axis2_listener_manager_get_reply_to_epr(
+ const axis2_listener_manager_t * listener_manager,
+ const axutil_env_t * env,
+ const axis2_char_t * svc_name,
const AXIS2_TRANSPORT_ENUMS transport);
/**
* Gets the configuration context that holds information on the transports
* managed by the listener manager.
* @param listener_manager pointer to listener manager struct
- * @param env pointer to environment struct
+ * @param env pointer to environment struct
*/
AXIS2_EXTERN axis2_conf_ctx_t *AXIS2_CALL
- axis2_listener_manager_get_conf_ctx(const axis2_listener_manager_t *listener_manager,
- const axutil_env_t *env);
- /**
- * Frees listener manager struct.
- * @param listener_manager pointer to listener manager struct
- * @param env pointer to environment struct
- * @return void
- */
- AXIS2_EXTERN void AXIS2_CALL
- axis2_listener_manager_free(axis2_listener_manager_t *listener_manager,
- const axutil_env_t *env);
+ axis2_listener_manager_get_conf_ctx(
+ const axis2_listener_manager_t * listener_manager,
+ const axutil_env_t * env);
+ /**
+ * Frees listener manager struct.
+ * @param listener_manager pointer to listener manager struct
+ * @param env pointer to environment struct
+ * @return void
+ */
+ AXIS2_EXTERN void AXIS2_CALL
+ axis2_listener_manager_free(
+ axis2_listener_manager_t * listener_manager,
+ const axutil_env_t * env);
/**
* Creates a listener manager struct instance.
@@ -122,8 +128,9 @@
* or NULL on error with error code set in environment's error
*/
AXIS2_EXTERN axis2_listener_manager_t *AXIS2_CALL
- axis2_listener_manager_create(const axutil_env_t *env);
+ axis2_listener_manager_create(
+ const axutil_env_t * env);
/** @} */
#ifdef __cplusplus
Modified: webservices/axis2/trunk/c/include/axis2_module.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_module.h?rev=580274&r1=580273&r2=580274&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_module.h (original)
+++ webservices/axis2/trunk/c/include/axis2_module.h Fri Sep 28 02:47:09 2007
@@ -1,3 +1,4 @@
+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -17,18 +18,18 @@
#ifndef AXIS2_MODULE_H
#define AXIS2_MODULE_H
-/**
+/**
* @defgroup axis2_module module
* @ingroup axis2_desc
- * Every module provides an implementation of struct interface. Modules are in
+ * Every module provides an implementation of struct interface. Modules are in
* one of two states: "available" or "initialized". All modules that the run-time
- * detects (from the repository modules directory) are said to be in the
+ * detects (from the repository modules directory) are said to be in the
* "available" state. If some service indicates a dependency on this
- * module then the module is initialized (once for the life time of the system)
+ * module then the module is initialized (once for the life time of the system)
* and the state changes to "initialized".
* Any module which is in the "initialized" state can be engaged as needed
- * by the engine to respond to a message. Module engagement is done by
- * deployment engine using module.xml.
+ * by the engine to respond to a message. Module engagement is done by
+ * deployment engine using module.xml.
* @{
*/
@@ -46,7 +47,6 @@
#include <axis2_module_desc.h>
#include <axutil_hash.h>
-
#ifdef __cplusplus
extern "C"
{
@@ -54,6 +54,7 @@
/** Type name for axis2_module_ops */
typedef struct axis2_module_ops axis2_module_ops_t;
+
/** Type name for axis2_module_ops */
typedef struct axis2_module axis2_module_t;
@@ -61,6 +62,7 @@
struct axis2_module_ops
{
+
/**
* Initializes module.
* @param module pointer to module struct
@@ -69,12 +71,13 @@
* @param module_desc module description
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *
- init) (
- axis2_module_t *module,
- const axutil_env_t *env,
- struct axis2_conf_ctx *conf_ctx,
- axis2_module_desc_t *module_desc);
+ axis2_status_t(
+ AXIS2_CALL
+ * init)(
+ axis2_module_t * module,
+ const axutil_env_t * env,
+ struct axis2_conf_ctx * conf_ctx,
+ axis2_module_desc_t * module_desc);
/**
* Shutdowns module.
@@ -82,22 +85,23 @@
* @param env pointer to environment struct
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *
- shutdown)(
- axis2_module_t *module,
- const axutil_env_t *env);
+ axis2_status_t(
+ AXIS2_CALL
+ * shutdown)(
+ axis2_module_t * module,
+ const axutil_env_t * env);
/**
* Fills the hash map of handler create functions for the module.
* @param module pointer to module struct
* @param env pointer to environment struct
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
- */
- axis2_status_t (AXIS2_CALL *
- fill_handler_create_func_map)(
- axis2_module_t *module,
- const axutil_env_t *env);
-
+ */
+ axis2_status_t(
+ AXIS2_CALL
+ * fill_handler_create_func_map)(
+ axis2_module_t * module,
+ const axutil_env_t * env);
};
@@ -106,8 +110,10 @@
*/
struct axis2_module
{
+
/** operations of module */
const axis2_module_ops_t *ops;
+
/** hash map of handler create functions */
axutil_hash_t *handler_create_func_map;
};
@@ -117,28 +123,28 @@
* @param env pointer to environment struct
* @return pointer to newly created module
*/
- AXIS2_EXTERN axis2_module_t * AXIS2_CALL
- axis2_module_create (
- const axutil_env_t *env);
+ AXIS2_EXTERN axis2_module_t *AXIS2_CALL
+ axis2_module_create(
+ const axutil_env_t * env);
-/** Initializes module.
- @sa axis2_module_ops#init */
+ /** Initializes module.
+ @sa axis2_module_ops#init */
#define AXIS2_MODULE_INIT(module, env, conf_ctx, module_desc) \
((module)->ops->init (module, env, conf_ctx, module_desc))
-/** Shutdowns module.
- @sa axis2_module_ops#shutdown */
+ /** Shutdowns module.
+ @sa axis2_module_ops#shutdown */
#define AXIS2_MODULE_SHUTDOWN(module, env) \
((module)->ops->shutdown (module, env))
-/** Fills handler create function map.
- @sa axis2_module_ops#fill_handler_create_func_map */
+ /** Fills handler create function map.
+ @sa axis2_module_ops#fill_handler_create_func_map */
#define AXIS2_MODULE_FILL_HANDLER_CREATE_FUNC_MAP(module, env) \
((module)->ops->fill_handler_create_func_map (module, env))
-/** @} */
+ /** @} */
#ifdef __cplusplus
}
#endif
-#endif /* AXIS2_MODULE_H */
+#endif /* AXIS2_MODULE_H */
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org