You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by na...@apache.org on 2008/06/09 06:03:17 UTC

svn commit: r664619 - /webservices/axis2/trunk/c/src/core/engine/rest_disp.c

Author: nandika
Date: Sun Jun  8 21:03:17 2008
New Revision: 664619

URL: http://svn.apache.org/viewvc?rev=664619&view=rev
Log:
axis2_rest_disp_get_rest_op_with_method_and_location method moved to core utils

Modified:
    webservices/axis2/trunk/c/src/core/engine/rest_disp.c

Modified: webservices/axis2/trunk/c/src/core/engine/rest_disp.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/engine/rest_disp.c?rev=664619&r1=664618&r2=664619&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/engine/rest_disp.c (original)
+++ webservices/axis2/trunk/c/src/core/engine/rest_disp.c Sun Jun  8 21:03:17 2008
@@ -28,6 +28,7 @@
 #include <axiom_soap_body.h>
 #include <axiom_soap_const.h>
 #include <axis2_http_transport.h>
+#include <axis2_core_utils.h>
 
 
 const axis2_char_t *AXIS2_REST_DISP_NAME = "rest_dispatcher";
@@ -201,7 +202,7 @@
                         AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,
                                         "Checking for operation using \
 REST HTTP Location fragment : %s", location);
-                        op = axis2_rest_disp_get_rest_op_with_method_and_location(svc, env,
+                        op = axis2_core_utils_get_rest_op_with_method_and_location(svc, env,
                                  axis2_msg_ctx_get_rest_http_method(msg_ctx, env), location,
                                  &param_count, &params);
                         if (op)
@@ -232,7 +233,7 @@
                                 if (axutil_strcasecmp(rest_methods[i], 
                                                       http_method))
                                 {
-                                    if (axis2_rest_disp_get_rest_op_with_method_and_location(svc, env,
+                                    if (axis2_core_utils_get_rest_op_with_method_and_location(svc, env,
                                         rest_methods[i], location, &param_count, &params))
                                     {
                                         for (j = 0; j < param_count; j++)
@@ -339,6 +340,7 @@
     return axis2_disp_find_svc_and_op(handler, env, msg_ctx);
 }
 
+/*
 axis2_op_t *AXIS2_CALL
 axis2_rest_disp_get_rest_op_with_method_and_location(
     const axis2_svc_t * svc,
@@ -381,7 +383,6 @@
         if (rindex && *rindex)
         {
             loc_str_tmp = axutil_string_substring_ending_at(loc_str_tmp, (int)(rindex - loc_str_tmp));
-            /* We are sure that the difference lies within the int range */
         }
         else if (pass_one)
         {
@@ -391,7 +392,6 @@
         {
             int i = 0;
             i = (int)strlen(loc_str_tmp);
-            /* We are sure that the difference lies within the int range */
             if (i == 0)
             {
                 break;
@@ -449,3 +449,4 @@
     return NULL;
 }
 
+*/
\ No newline at end of file