You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ru...@apache.org on 2009/08/01 09:47:54 UTC

svn commit: r799813 - in /synapse/branches/1.3: modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/ src/site/xdoc/

Author: ruwan
Date: Sat Aug  1 07:47:54 2009
New Revision: 799813

URL: http://svn.apache.org/viewvc?rev=799813&view=rev
Log:
Fixing the issue https://issues.apache.org/jira/browse/SYNAPSE-397

Modified:
    synapse/branches/1.3/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/Axis2HttpRequest.java
    synapse/branches/1.3/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/NhttpConstants.java
    synapse/branches/1.3/src/site/xdoc/Synapse_Configuration_Language.xml

Modified: synapse/branches/1.3/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/Axis2HttpRequest.java
URL: http://svn.apache.org/viewvc/synapse/branches/1.3/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/Axis2HttpRequest.java?rev=799813&r1=799812&r2=799813&view=diff
==============================================================================
--- synapse/branches/1.3/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/Axis2HttpRequest.java (original)
+++ synapse/branches/1.3/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/Axis2HttpRequest.java Sat Aug  1 07:47:54 2009
@@ -21,8 +21,6 @@
 import org.apache.axiom.om.OMOutputFormat;
 import org.apache.axis2.AxisFault;
 import org.apache.axis2.Constants;
-import org.apache.axis2.description.WSDL2Constants;
-import org.apache.axis2.description.WSDL20DefaultValueHolder;
 import org.apache.axis2.addressing.EndpointReference;
 import org.apache.axis2.context.MessageContext;
 import org.apache.axis2.transport.MessageFormatter;
@@ -155,8 +153,8 @@
 
             httpRequest = new BasicHttpEntityEnclosingRequest(
                 httpMethod,
-                msgContext.isPropertyTrue(NhttpConstants.POST_TO_PATH) ?
-                    new URL(epr.getAddress()).getPath() : epr.getAddress(),
+                msgContext.isPropertyTrue(NhttpConstants.POST_TO_URI) ?
+                    epr.getAddress() : new URL(epr.getAddress()).getPath(),
                 msgContext.isPropertyTrue(NhttpConstants.FORCE_HTTP_1_0) ?
                     HttpVersion.HTTP_1_0 : HttpVersion.HTTP_1_1);
 
@@ -199,8 +197,8 @@
 
             httpRequest = new BasicHttpRequest(
                 httpMethod,
-                msgContext.isPropertyTrue(NhttpConstants.POST_TO_PATH) ?
-                    new URL(epr.getAddress()).getPath() : epr.getAddress(),
+                msgContext.isPropertyTrue(NhttpConstants.POST_TO_URI) ?
+                    epr.getAddress() : new URL(epr.getAddress()).getPath(),
                 msgContext.isPropertyTrue(NhttpConstants.FORCE_HTTP_1_0) ?
                     HttpVersion.HTTP_1_0 : HttpVersion.HTTP_1_1);
         }

Modified: synapse/branches/1.3/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/NhttpConstants.java
URL: http://svn.apache.org/viewvc/synapse/branches/1.3/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/NhttpConstants.java?rev=799813&r1=799812&r2=799813&view=diff
==============================================================================
--- synapse/branches/1.3/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/NhttpConstants.java (original)
+++ synapse/branches/1.3/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/NhttpConstants.java Sat Aug  1 07:47:54 2009
@@ -31,7 +31,7 @@
     public static final String HTTP_SC = "HTTP_SC";
     public static final String FORCE_HTTP_1_0 = "FORCE_HTTP_1.0";
     public static final String DISABLE_CHUNKING = "DISABLE_CHUNKING";
-    public static final String POST_TO_PATH = "POST_TO_PATH";
+    public static final String POST_TO_URI = "POST_TO_URI";
     public static final String NO_KEEPALIVE = "NO_KEEPALIVE";
     public static final String DISABLE_KEEPALIVE = "http.connection.disable.keepalive";
     public static final String IGNORE_SC_ACCEPTED = "IGNORE_SC_ACCEPTED";

Modified: synapse/branches/1.3/src/site/xdoc/Synapse_Configuration_Language.xml
URL: http://svn.apache.org/viewvc/synapse/branches/1.3/src/site/xdoc/Synapse_Configuration_Language.xml?rev=799813&r1=799812&r2=799813&view=diff
==============================================================================
--- synapse/branches/1.3/src/site/xdoc/Synapse_Configuration_Language.xml (original)
+++ synapse/branches/1.3/src/site/xdoc/Synapse_Configuration_Language.xml Sat Aug  1 07:47:54 2009
@@ -1189,8 +1189,8 @@
         (instead of the default 1.1)
       </li>
       <li>
-        POST_TO_PATH - forces outgoing http/s messages to use the PATH segment in a POST
-        (instead of the default full URL)
+        POST_TO_URI - forces outgoing http/s messages to use the full URI
+          in a POST (instead of the default PATH)
       </li>
     </ul>
     <h5>