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 na...@apache.org on 2008/08/11 17:25:50 UTC
svn commit: r684778 -
/webservices/axis2/trunk/java/modules/transports/src/org/apache/axis2/transport/http/AbstractHTTPSender.java
Author: nandana
Date: Mon Aug 11 08:25:49 2008
New Revision: 684778
URL: http://svn.apache.org/viewvc?rev=684778&view=rev
Log:
AXIS2-2688 setting the HttpMethodParams in the HttpMethod
Modified:
webservices/axis2/trunk/java/modules/transports/src/org/apache/axis2/transport/http/AbstractHTTPSender.java
Modified: webservices/axis2/trunk/java/modules/transports/src/org/apache/axis2/transport/http/AbstractHTTPSender.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/transports/src/org/apache/axis2/transport/http/AbstractHTTPSender.java?rev=684778&r1=684777&r2=684778&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/transports/src/org/apache/axis2/transport/http/AbstractHTTPSender.java (original)
+++ webservices/axis2/trunk/java/modules/transports/src/org/apache/axis2/transport/http/AbstractHTTPSender.java Mon Aug 11 08:25:49 2008
@@ -47,6 +47,7 @@
import org.apache.commons.httpclient.UsernamePasswordCredentials;
import org.apache.commons.httpclient.auth.AuthPolicy;
import org.apache.commons.httpclient.auth.AuthScope;
+import org.apache.commons.httpclient.params.HttpMethodParams;
import org.apache.commons.httpclient.protocol.Protocol;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -534,6 +535,12 @@
method.addRequestHeader(HTTPConstants.HEADER_CONTENT_ENCODING,
HTTPConstants.COMPRESSION_GZIP);
}
+
+ if (msgContext.getProperty(HTTPConstants.HTTP_METHOD_PARAMS) != null) {
+ HttpMethodParams params = (HttpMethodParams)msgContext
+ .getProperty(HTTPConstants.HTTP_METHOD_PARAMS);
+ method.setParams(params);
+ }
String cookiePolicy = (String) msgContext.getProperty(HTTPConstants.COOKIE_POLICY);
if (cookiePolicy != null) {
@@ -604,4 +611,5 @@
return userAgentString;
}
+
}