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 aj...@apache.org on 2005/09/06 13:00:31 UTC
svn commit: r278973 -
/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPTransportUtils.java
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,