axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r358724 - in /webservices/axis2/trunk/c/include: axis2_http_header.h axis2_http_out_transport_info.h axis2_http_response_writer.h axis2_http_simple_response.h axis2_http_transport.h
Date Fri, 23 Dec 2005 05:56:47 GMT
Author: samisa
Date: Thu Dec 22 21:56:37 2005
New Revision: 358724

URL: http://svn.apache.org/viewcvs?rev=358724&view=rev
Log:
Applied te patch for http transport

Modified:
    webservices/axis2/trunk/c/include/axis2_http_header.h
    webservices/axis2/trunk/c/include/axis2_http_out_transport_info.h
    webservices/axis2/trunk/c/include/axis2_http_response_writer.h
    webservices/axis2/trunk/c/include/axis2_http_simple_response.h
    webservices/axis2/trunk/c/include/axis2_http_transport.h

Modified: webservices/axis2/trunk/c/include/axis2_http_header.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_http_header.h?rev=358724&r1=358723&r2=358724&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_header.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_header.h Thu Dec 22 21:56:37 2005
@@ -37,12 +37,12 @@
  * @{
  */
 
-    typedef struct axis2_http_header_ops axis2_http_header_ops_t;
-    typedef struct axis2_http_header axis2_http_header_t;
+typedef struct axis2_http_header_ops axis2_http_header_ops_t;
+typedef struct axis2_http_header axis2_http_header_t;
 
     
 /** 
- * @brief HTTP Response Writer ops struct
+ * @brief HTTP Header ops struct
  * Encapsulator struct for ops of axis2_http_header
  */  
 AXIS2_DECLARE_DATA struct axis2_http_header_ops

Modified: webservices/axis2/trunk/c/include/axis2_http_out_transport_info.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_http_out_transport_info.h?rev=358724&r1=358723&r2=358724&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_out_transport_info.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_out_transport_info.h Thu Dec 22 21:56:37
2005
@@ -80,7 +80,7 @@
 					env, content_type) ((out_transport_info)->ops->\
 					set_content_type (out_transport_info, env, content_type))
 #define AXIS2_HTTP_OUT_TRANSPORT_INFO_SET_CHAR_ENCODING(out_transport_info,\
-					env) ((out_transport_info)->ops->set_char_encoding \
+					env, encoding) ((out_transport_info)->ops->set_char_encoding \
 					(out_transport_info, env, encoding))
 #define AXIS2_HTTP_OUT_TRANSPORT_INFO_FREE(out_transport_info, env)\
                     ((out_transport_info)->ops->free(out_transport_info, env))

Modified: webservices/axis2/trunk/c/include/axis2_http_response_writer.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_http_response_writer.h?rev=358724&r1=358723&r2=358724&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_response_writer.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_response_writer.h Thu Dec 22 21:56:37 2005
@@ -26,6 +26,7 @@
 #include <axis2.h>
 #include <axis2_defines.h>
 #include <axis2_env.h>
+#include <axis2_stream.h>
 
 #ifdef __cplusplus
 extern "C"

Modified: webservices/axis2/trunk/c/include/axis2_http_simple_response.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_http_simple_response.h?rev=358724&r1=358723&r2=358724&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_simple_response.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_simple_response.h Thu Dec 22 21:56:37 2005
@@ -29,6 +29,7 @@
 #include <axis2_array_list.h>
 #include <axis2_http_status_line.h>
 #include <axis2_http_header.h>
+#include <axis2_stream.h>
 
 
 #ifdef __cplusplus
@@ -153,10 +154,10 @@
 /************************** Start of function macros **************************/
 
 
-#define AXIS2_HTTP_SIMPLE_RESPONSE_SET_STAUTUS_LINE\
-                    (simple_response, env, status_line)\
-                    ((simple_response)->ops->get_status_line_line\
-                    (simple_response, env, status_line))
+#define AXIS2_HTTP_SIMPLE_RESPONSE_SET_STAUTUS_LINE(\
+					simple_response, env, http_version, status_code, phrase)\
+                    ((simple_response)->ops->set_status_line\
+                    (simple_response, env, http_version, status_code, phrase))
 #define AXIS2_HTTP_SIMPLE_RESPONSE_GET_PHRASE\
                     (simple_response, env) ((simple_response)->ops->get_phrase\
                     (simple_response, env))
@@ -172,9 +173,9 @@
 #define AXIS2_HTTP_SIMPLE_RESPONSE_CONTAINS_HEADER(simple_response, env, name)\
                     ((simple_response)->ops->contains_header\
                     (simple_response, env, name))
-#define AXIS2_HTTP_SIMPLE_RESPONSE_GET_HEADERS(simple_response, env, headers) \
+#define AXIS2_HTTP_SIMPLE_RESPONSE_GET_HEADERS(simple_response, env) \
                     ((simple_response)->ops->get_headers\
-                    (simple_response, env, headers))
+                    (simple_response, env))
 #define AXIS2_HTTP_SIMPLE_RESPONSE_GET_FIRST_HEADER(simple_request, env) \
                     ((simple_request)->ops->get_first_header\
                     (simple_request, env))

Modified: webservices/axis2/trunk/c/include/axis2_http_transport.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_http_transport.h?rev=358724&r1=358723&r2=358724&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_transport.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_transport.h Thu Dec 22 21:56:37 2005
@@ -34,7 +34,7 @@
     * \brief HTTP protocol and message context constants.
     *
     */
-    
+    #define AXIS2_HTTP_OUT_TRANSPORT_INFO "HTTPOutTransportInfo" 
     /**
      * CARRIAGE RETURN AND LINE FEED
      */
@@ -62,8 +62,13 @@
     /**
      * RESPONSE_ACK_CODE_VAL
      */
-    #define AXIS2_HTTP_RESPONSE_ACK_CODE_VAL "202"
-    
+    #define AXIS2_HTTP_RESPONSE_ACK_CODE_VAL 202
+
+    /*
+     * RESPONSE_OK_CODE_VAL
+     */
+    #define AXIS2_HTTP_RESPONSE_OK_CODE_VAL 200
+
     /**
      * SOCKET
      */
@@ -332,6 +337,16 @@
      * Default charset in content
      */
     #define AXIS2_HTTP_DEFAULT_CONTENT_CHARSET "ISO-8859-1"
+	
+	/**
+     * Field TRANSPORT_HTTP
+     */
+    #define AXIS2_TRANSPORT_HTTP "http"
+	
+	/**
+	 * Msg context response written key
+	 */
+	#define AXIS2_RESPONSE_WRITTEN "CONTENT_WRITTEN"
     
 /** @} */
     



Mime
View raw message