You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ve...@apache.org on 2017/01/19 20:00:18 UTC
svn commit: r1779512 - in /axis/axis2/java/core/trunk/modules/transport:
http-hc3/src/main/java/org/apache/axis2/transport/http/impl/httpclient3/HTTPSenderImpl.java
http/src/org/apache/axis2/transport/http/impl/httpclient4/HTTPSenderImpl.java
Author: veithen
Date: Thu Jan 19 20:00:18 2017
New Revision: 1779512
URL: http://svn.apache.org/viewvc?rev=1779512&view=rev
Log:
Remove unnecessary code.
Modified:
axis/axis2/java/core/trunk/modules/transport/http-hc3/src/main/java/org/apache/axis2/transport/http/impl/httpclient3/HTTPSenderImpl.java
axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/impl/httpclient4/HTTPSenderImpl.java
Modified: axis/axis2/java/core/trunk/modules/transport/http-hc3/src/main/java/org/apache/axis2/transport/http/impl/httpclient3/HTTPSenderImpl.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/transport/http-hc3/src/main/java/org/apache/axis2/transport/http/impl/httpclient3/HTTPSenderImpl.java?rev=1779512&r1=1779511&r2=1779512&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/transport/http-hc3/src/main/java/org/apache/axis2/transport/http/impl/httpclient3/HTTPSenderImpl.java (original)
+++ axis/axis2/java/core/trunk/modules/transport/http-hc3/src/main/java/org/apache/axis2/transport/http/impl/httpclient3/HTTPSenderImpl.java Thu Jan 19 20:00:18 2017
@@ -77,14 +77,8 @@ public class HTTPSenderImpl extends HTTP
* @throws AxisFault
* if problems occur
*/
- protected void obtainHTTPHeaderInformation(Object httpMethodBase, MessageContext msgContext)
+ protected void obtainHTTPHeaderInformation(HttpMethod method, MessageContext msgContext)
throws AxisFault {
- HttpMethod method;
- if (httpMethodBase instanceof HttpMethodBase) {
- method = (HttpMethod) httpMethodBase;
- } else {
- return;
- }
// Set RESPONSE properties onto the REQUEST message context. They will
// need to be copied off the request context onto
// the response context elsewhere, for example in the
Modified: axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/impl/httpclient4/HTTPSenderImpl.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/impl/httpclient4/HTTPSenderImpl.java?rev=1779512&r1=1779511&r2=1779512&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/impl/httpclient4/HTTPSenderImpl.java (original)
+++ axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/impl/httpclient4/HTTPSenderImpl.java Thu Jan 19 20:00:18 2017
@@ -87,14 +87,8 @@ public class HTTPSenderImpl extends HTTP
* NOT!
* @throws AxisFault if problems occur
*/
- protected void obtainHTTPHeaderInformation(Object httpResponse, MessageContext msgContext)
+ protected void obtainHTTPHeaderInformation(HttpResponse response, MessageContext msgContext)
throws AxisFault {
- HttpResponse response;
- if (httpResponse instanceof HttpResponse) {
- response = (HttpResponse) httpResponse;
- } else {
- return;
- }
// Set RESPONSE properties onto the REQUEST message context. They will
// need to be copied off the request context onto
// the response context elsewhere, for example in the