axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
Subject svn commit: r377193 - in /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2: Constants.java transport/http/RESTSender.java
Date Sun, 12 Feb 2006 15:36:43 GMT
Author: chinthaka
Date: Sun Feb 12 07:36:43 2006
New Revision: 377193

URL: http://svn.apache.org/viewcvs?rev=377193&view=rev
Log:
Applying Thilini's patch with some modifications.

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/Constants.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/RESTSender.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/Constants.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/Constants.java?rev=377193&r1=377192&r2=377193&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/Constants.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/Constants.java Sun Feb
12 07:36:43 2006
@@ -215,5 +215,6 @@
         public static final String DISABLE_ADDRESSING_FOR_OUT_MESSAGES = "disableAddressingForOutMessages";
 
         public static final String TRANSPORT_IN_URL = "TransportInURL";
+        String URL_PARAMETER_LIST = "URLParameterList";
     }
 }

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/RESTSender.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/RESTSender.java?rev=377193&r1=377192&r2=377193&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/RESTSender.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/RESTSender.java
Sun Feb 12 07:36:43 2006
@@ -38,16 +38,19 @@
         ArrayList paraList = new ArrayList();
         ArrayList urlList = new ArrayList();
 
-        // TODO: s is ALWAYS EMPTY. so what gets added to urllist????
-        String[]  s = new String[]{};
+        // urlParameterList contains the parameters which go in the URL
+        String[] urlParameterList = new String[0];
+        if (msgContext.getProperty(Constants.Configuration.URL_PARAMETER_LIST)!=null){
+           urlParameterList = (String[])msgContext.getProperty(Constants.Configuration.URL_PARAMETER_LIST);
+        }
         OMElement bodypara = OMAbstractFactory.getOMFactory().createOMElement("temp", null);
 
         while (iter1.hasNext()) {
             OMElement ele = (OMElement) iter1.next();
             boolean has = false;
 
-            for (int i = 0; i < s.length; i++) {
-                if (s[i].equals(ele.getLocalName())) {
+            for (int i = 0; i < urlParameterList.length; i++) {
+                if (urlParameterList[i].equals(ele.getLocalName())) {
                     has = true;
 
                     break;



Mime
View raw message