axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kei...@apache.org
Subject svn commit: r603838 - in /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http: AbstractHTTPSender.java HTTPConstants.java
Date Thu, 13 Dec 2007 06:29:05 GMT
Author: keithc
Date: Wed Dec 12 22:29:05 2007
New Revision: 603838

URL: http://svn.apache.org/viewvc?rev=603838&view=rev
Log:
Adding messageContext property to control Coockie policy


Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AbstractHTTPSender.java
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPConstants.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AbstractHTTPSender.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AbstractHTTPSender.java?rev=603838&r1=603837&r2=603838&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AbstractHTTPSender.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AbstractHTTPSender.java
Wed Dec 12 22:29:05 2007
@@ -517,6 +517,10 @@
                     HTTPConstants.COMPRESSION_GZIP);
         }
 
+        String cookiePolicy = (String) msgContext.getProperty(HTTPConstants.COOKIE_POLICY);
+        if (cookiePolicy != null) {
+            method.getParams().setCookiePolicy(cookiePolicy);   
+        }
         httpClient.executeMethod(config, method);
     }
 

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPConstants.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPConstants.java?rev=603838&r1=603837&r2=603838&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPConstants.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPConstants.java
Wed Dec 12 22:29:05 2007
@@ -458,6 +458,12 @@
     public static final String COMPRESSION_GZIP = "gzip";
 
     /**
+     * Field to set the coockie policy of commons http client
+     * http://jakarta.apache.org/httpcomponents/httpclient-3.x/cookies.html
+      */
+    public static final String COOKIE_POLICY = "COOKIE_POLICY";
+
+    /**
      * If you want the HTTP sender to indicate that it can accept a gziped
      * response, set this message context property to true. The sender will
      * automatically unzip the response if its gzipped.



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message