axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: r278973 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPTransportUtils.java
Date Tue, 06 Sep 2005 11:00:31 GMT
Author: ajith
Date: Tue Sep  6 04:00:25 2005
New Revision: 278973

URL: http://svn.apache.org/viewcvs?rev=278973&view=rev
Log:
Modified the getProperty to suit the getParameter/Property issue

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPTransportUtils.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPTransportUtils.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPTransportUtils.java?rev=278973&r1=278972&r2=278973&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPTransportUtils.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPTransportUtils.java
Tue Sep  6 04:00:25 2005
@@ -344,15 +344,14 @@
         }
         String attachmentRepoDir = null;
         String attachmentSizeThreshold = null;
+        Parameter parameter;
         if (fileCacheForAttachments) {
-            attachmentRepoDir = (String) msgContext
-                    .getProperty(Constants.Configuration.ATTACHMENT_TEMP_DIR);
-//            if (attachmentRepoDir==null | ("").equals(attachmentRepoDir))
-//            {
-//                msgContext.getServiceContext().getEngineContext().getRealPath("temp");
-//            }
-            attachmentSizeThreshold = (String) msgContext
-            .getProperty(Constants.Configuration.FILE_SIZE_THRESHOLD);
+            parameter = msgContext.getParameter(Constants.Configuration.ATTACHMENT_TEMP_DIR);
+            attachmentRepoDir = parameter==null?"":parameter.getValue().toString();
+
+            parameter = msgContext
+                    .getParameter(Constants.Configuration.FILE_SIZE_THRESHOLD);
+            attachmentSizeThreshold = parameter==null?"":parameter.getValue().toString();
         }
 
         MIMEHelper mimeHelper = new MIMEHelper(inStream, contentTypeString,



Mime
View raw message