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 2006/05/04 09:03:25 UTC

svn commit: r399573 - /webservices/axis2/trunk/c/modules/core/context/msg_ctx.c

Author: samisa
Date: Thu May  4 00:03:23 2006
New Revision: 399573

URL: http://svn.apache.org/viewcvs?rev=399573&view=rev
Log:
Added setting doing_rest from properties map in options

Modified:
    webservices/axis2/trunk/c/modules/core/context/msg_ctx.c

Modified: webservices/axis2/trunk/c/modules/core/context/msg_ctx.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/context/msg_ctx.c?rev=399573&r1=399572&r2=399573&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/msg_ctx.c (original)
+++ webservices/axis2/trunk/c/modules/core/context/msg_ctx.c Thu May  4 00:03:23 2006
@@ -1958,6 +1958,7 @@
     axis2_options_t *options)
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
+    axis2_char_t *rest_val = NULL;
     
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     AXIS2_PARAM_CHECK((*env)->error, options, AXIS2_FAILURE);
@@ -1968,5 +1969,13 @@
         AXIS2_OPTIONS_GET_MSG_INFO_HEADERS(options, env);
     AXIS2_CTX_SET_NON_PERSISTANT_MAP(msg_ctx_impl->base, env, 
         AXIS2_OPTIONS_GET_PROPERTIES(options, env));
+    rest_val = (axis2_char_t)AXIS2_MSG_CTX_GET_PROPERTY(msg_ctx, env, 
+        AXIS2_ENABLE_REST, AXIS2_FALSE);
+    if (rest_val)
+    {
+       if (AXIS2_STRCMP(rest_val, AXIS2_VALUE_TRUE) == 0)
+           msg_ctx_impl->doing_rest = AXIS2_TRUE;
+    }
     
+    return AXIS2_SUCCESS;
 }