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 de...@apache.org on 2005/07/14 11:08:51 UTC
svn commit: r219015 -
/webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
Author: deepal
Date: Thu Jul 14 02:08:49 2005
New Revision: 219015
URL: http://svn.apache.org/viewcvs?rev=219015&view=rev
Log:
checking wether the message is MTOM or not at the sender
Modified:
webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java?rev=219015&r1=219014&r2=219015&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java (original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java Thu Jul 14 02:08:49 2005
@@ -52,8 +52,6 @@
TransportSender {
private boolean chuncked = false;
- private boolean doMTOM = false;
-
private String httpVersion = HTTPConstants.HEADER_PROTOCOL_10;
public static final String HTTP_METHOD = "HTTP_METHOD";
@@ -127,13 +125,13 @@
//supporting RESTFacility..
if (!msgContext.isDoingREST()) {
- this.transportConfigurationPOST(msgContext,dataout,url,soapActionString,doMTOM);
+ this.transportConfigurationPOST(msgContext,dataout,url,soapActionString);
}
if (msgContext.isDoingREST() && !msgContext.isRestThroughPOST()) {
this.transportConfigurationGET(msgContext,url);
}
if (msgContext.isDoingREST() && msgContext.isRestThroughPOST()) {
- this.transportConfigurationPOST(msgContext,dataout,url,soapActionString,doMTOM);
+ this.transportConfigurationPOST(msgContext,dataout,url,soapActionString);
}
} catch (MalformedURLException e) {
throw new AxisFault(e);
@@ -276,11 +274,11 @@
}
private void transportConfigurationPOST(MessageContext msgContext,
- OMElement dataout, URL url, String soapActionString, boolean doMTOM) throws MalformedURLException, AxisFault, IOException {
+ OMElement dataout, URL url, String soapActionString) throws MalformedURLException, AxisFault, IOException {
PostMethod postMethod = new PostMethod();
postMethod.setPath(url.getFile());
msgContext.setProperty(HTTP_METHOD, postMethod);
- postMethod.setRequestEntity(new AxisRequestEntity(dataout, chuncked,doMTOM));
+ postMethod.setRequestEntity(new AxisRequestEntity(dataout, chuncked,msgContext.isDoingMTOM()));
if (!httpVersion.equals(HTTPConstants.HEADER_PROTOCOL_10) && chuncked) {
((PostMethod) postMethod).setContentChunked(true);
}