axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r478265 - in /webservices/axis2/trunk/java/modules: adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java kernel/src/org/apache/axis2/transport/http/AxisServlet.java
Date Wed, 22 Nov 2006 18:09:08 GMT
Author: dims
Date: Wed Nov 22 10:09:07 2006
New Revision: 478265

URL: http://svn.apache.org/viewvc?view=rev&rev=478265
Log:
merge 478229 and 478259


Modified:
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java?view=diff&rev=478265&r1=478264&r2=478265
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
(original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
Wed Nov 22 10:09:07 2006
@@ -52,35 +52,35 @@
 
     /* String conversion methods */
     public static String convertToString(int i) {
-        return i + "";
+        return Integer.toString(i);
     }
 
     public static String convertToString(float i) {
-        return i + "";
+        return Float.toString(i);
     }
 
     public static String convertToString(long i) {
-        return i + "";
+        return Long.toString(i);
     }
 
     public static String convertToString(double i) {
-        return i + "";
+        return Double.toString(i);
     }
 
     public static String convertToString(byte i) {
-        return ((int) i) + "";
+        return Byte.toString(i);
     }
 
     public static String convertToString(char i) {
-        return new String(new char[]{i});
+        return Character.toString(i);
     }
 
     public static String convertToString(short i) {
-        return i + "";
+        return Short.toString(i);
     }
 
     public static String convertToString(boolean i) {
-        return i + "";
+        return Boolean.toString(i);
     }
 
     public static String convertToString(Date value) {

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java?view=diff&rev=478265&r1=478264&r2=478265
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
Wed Nov 22 10:09:07 2006
@@ -87,6 +87,7 @@
             // We need to create this only if transport session is enabled.
             Object sessionContext = getSessionContext(req);
             msgContext.setSessionContext((SessionContext) sessionContext);
+            msgContext.setProperty(SESSION_ID, req.getSession().getId());
         }
 
         msgContext.setConfigurationContext(configContext);
@@ -100,7 +101,6 @@
         msgContext.setFrom(new EndpointReference(req.getRemoteAddr()));
         msgContext.setProperty(MessageContext.TRANSPORT_HEADERS,
                 getTransportHeaders(req));
-        msgContext.setProperty(SESSION_ID, req.getSession().getId());
         msgContext.setProperty(Constants.Configuration.TRANSPORT_IN_URL, req.getRequestURL().toString());
         msgContext.setIncomingTransportName(Constants.TRANSPORT_HTTP);
         msgContext.setProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST, req);



---------------------------------------------------------------------
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