axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manj...@apache.org
Subject svn commit: r662322 - /webservices/axis2/branches/c/post_1_4_mtom/c/src/core/transport/http/util/http_transport_utils.c
Date Mon, 02 Jun 2008 05:02:23 GMT
Author: manjula
Date: Sun Jun  1 22:02:23 2008
New Revision: 662322

URL: http://svn.apache.org/viewvc?rev=662322&view=rev
Log:
Changing to pick the callabck param.

Modified:
    webservices/axis2/branches/c/post_1_4_mtom/c/src/core/transport/http/util/http_transport_utils.c

Modified: webservices/axis2/branches/c/post_1_4_mtom/c/src/core/transport/http/util/http_transport_utils.c
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/c/post_1_4_mtom/c/src/core/transport/http/util/http_transport_utils.c?rev=662322&r1=662321&r2=662322&view=diff
==============================================================================
--- webservices/axis2/branches/c/post_1_4_mtom/c/src/core/transport/http/util/http_transport_utils.c
(original)
+++ webservices/axis2/branches/c/post_1_4_mtom/c/src/core/transport/http/util/http_transport_utils.c
Sun Jun  1 22:02:23 2008
@@ -324,9 +324,11 @@
             axiom_mime_parser_t *mime_parser = NULL;
             int soap_body_len = 0;
             axutil_param_t *buffer_size_param = NULL;
-            axutil_param_t *max_buffers_param = 0;
+            axutil_param_t *max_buffers_param = NULL;
+            axutil_param_t *callback_name_param = NULL;
             axis2_char_t *value_size = NULL;
             axis2_char_t *value_num = NULL;
+            axis2_char_t *value_callback = NULL;
             int size = 0;
             int num = 0;
 
@@ -360,6 +362,20 @@
                 }
             }
 
+            callback_name_param = axis2_msg_ctx_get_parameter (msg_ctx,
+                                                                   env,
+                                                                   AXIS2_MTOM_CACHING_CALLBACK);
+
+            if(callback_name_param)
+            {
+                value_callback =
+                    (axis2_char_t *) axutil_param_get_value (callback_name_param, env);
+                if(value_callback)
+                {
+                    axiom_mime_parser_set_caching_callback_name(mime_parser, env, value_callback);
+                }
+            }
+
             if (mime_parser)
             {
                 binary_data_map = 
@@ -742,9 +758,11 @@
             axiom_mime_parser_t *mime_parser = NULL;
             int soap_body_len = 0;
             axutil_param_t *buffer_size_param = NULL;
-            axutil_param_t *max_buffers_param = 0;
+            axutil_param_t *max_buffers_param = NULL;
+            axutil_param_t *callback_name_param = NULL;
             axis2_char_t *value_size = NULL;
             axis2_char_t *value_num = NULL;
+            axis2_char_t *value_callback = NULL;
             int size = 0;
             int num = 0;
 
@@ -778,6 +796,21 @@
                     axiom_mime_parser_set_max_buffers(mime_parser, env, num);
                 }
             }
+   
+            callback_name_param = axis2_msg_ctx_get_parameter (msg_ctx,
+                                                                   env,
+                                                                   AXIS2_MTOM_CACHING_CALLBACK);
+
+            if(callback_name_param)
+            {
+                value_callback =
+                    (axis2_char_t *) axutil_param_get_value (callback_name_param, env);
+                if(value_callback)
+                {
+                    axiom_mime_parser_set_caching_callback_name(mime_parser, env, value_callback);
+                }
+            }
+
 
             if (mime_parser)
             {
@@ -1913,9 +1946,11 @@
             int soap_body_len = 0;
             axis2_char_t *soap_body_str = NULL;
             axutil_param_t *buffer_size_param = NULL;
-            axutil_param_t *max_buffers_param = 0;
+            axutil_param_t *max_buffers_param = NULL;
+            axutil_param_t *callback_name_param = NULL;
             axis2_char_t *value_size = NULL;
             axis2_char_t *value_num = NULL;
+            axis2_char_t *value_callback = NULL;
             int size = 0;
             int num = 0;
  
@@ -1950,7 +1985,21 @@
                     axiom_mime_parser_set_max_buffers(mime_parser, env, num);
                 }
             }
-            
+           
+            callback_name_param = axis2_msg_ctx_get_parameter (msg_ctx,
+                                                                   env,
+                                                                   AXIS2_MTOM_CACHING_CALLBACK);
+            if(callback_name_param)
+            {
+                value_callback =
+                    (axis2_char_t *) axutil_param_get_value (callback_name_param, env);
+                if(value_callback)
+                {
+                    axiom_mime_parser_set_caching_callback_name(mime_parser, env, value_callback);
+                }
+            }
+   
+ 
             if (mime_parser)
             {
                 binary_data_map = 



Mime
View raw message