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 sc...@apache.org on 2008/07/11 18:11:50 UTC

svn commit: r676013 - /webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/BindingProvider.java

Author: scheu
Date: Fri Jul 11 09:11:49 2008
New Revision: 676013

URL: http://svn.apache.org/viewvc?rev=676013&view=rev
Log:
AXIS2-3904
Contributor:Samuel Isokpunwu
Remove limitation of Maintain Session value to String type

Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/BindingProvider.java

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/BindingProvider.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/BindingProvider.java?rev=676013&r1=676012&r2=676013&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/BindingProvider.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/BindingProvider.java Fri Jul 11 09:11:49 2008
@@ -184,7 +184,7 @@
     */
     protected void setupSessionContext(Map<String, Object> properties) {
         String sessionKey = null;
-        String sessionValue = null;
+        Object sessionValue = null;
 
         if (properties == null) {
             return;
@@ -192,19 +192,19 @@
 
         if (properties.containsKey(HTTPConstants.HEADER_LOCATION)) {
             sessionKey = HTTPConstants.HEADER_LOCATION;
-            sessionValue = (String)properties.get(sessionKey);
+            sessionValue = properties.get(sessionKey);
             if (sessionValue != null && !"".equals(sessionValue)) {
                 requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, sessionValue);
             }
         } else if (properties.containsKey(HTTPConstants.HEADER_COOKIE)) {
             sessionKey = HTTPConstants.HEADER_COOKIE;
-            sessionValue = (String)properties.get(sessionKey);
+            sessionValue = properties.get(sessionKey);
             if (sessionValue != null && !"".equals(sessionValue)) {
                 requestContext.put(HTTPConstants.COOKIE_STRING, sessionValue);
             }
         } else if (properties.containsKey(HTTPConstants.HEADER_COOKIE2)) {
             sessionKey = HTTPConstants.HEADER_COOKIE2;
-            sessionValue = (String)properties.get(sessionKey);
+            sessionValue = properties.get(sessionKey);
             if (sessionValue != null && !"".equals(sessionValue)) {
                 requestContext.put(HTTPConstants.COOKIE_STRING, sessionValue);
             }