Author: veithen
Date: Sun Jan 15 22:41:42 2017
New Revision: 1778952
URL: http://svn.apache.org/viewvc?rev=1778952&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/HTTPSender.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=1778952&r1=1778951&r2=1778952&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
Sun Jan 15 22:41:42 2017
@@ -180,15 +180,8 @@ public class HTTPSenderImpl extends HTTP
* @throws IOException
* - Thrown in case an exception occurs
*/
- protected void handleResponse(MessageContext msgContext, Object
httpMethodBase)
+ protected void handleResponse(MessageContext msgContext, HttpMethodBase
method)
throws IOException {
- HttpMethodBase method;
- if (httpMethodBase instanceof HttpMethodBase) {
- method = (HttpMethodBase) httpMethodBase;
- } else {
- log.trace("HttpMethodBase expected, but found - " +
httpMethodBase);
- return;
- }
int statusCode = method.getStatusCode();
HTTPStatusCodeFamily family = getHTTPStatusCodeFamily(statusCode);
log.trace("Handling response - " + statusCode);
Modified:
axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/HTTPSender.java
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/HTTPSender.java?rev=1778952&r1=1778951&r2=1778952&view=diff
==============================================================================
---
axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/HTTPSender.java
(original)
+++
axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/HTTPSender.java
Sun Jan 15 22:41:42 2017
@@ -77,17 +77,6 @@ public abstract class HTTPSender extends
protected abstract Request preparePut(MessageContext msgContext, URL url,
String soapActionString) throws AxisFault;
-
- /**
- * Used to handle the HTTP Response
- *
- * @param msgContext - The MessageContext of the message
- * @param method - The HTTP method used
- * @throws IOException - Thrown in case an exception occurs
- */
- protected abstract void handleResponse(MessageContext msgContext,
- Object httpMethodBase) throws IOException;
-
protected abstract void cleanup(MessageContext msgContext, Object
httpMethod);
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=1778952&r1=1778951&r2=1778952&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
Sun Jan 15 22:41:42 2017
@@ -190,15 +190,8 @@ public class HTTPSenderImpl extends HTTP
* @param - The HTTP method used
* @throws java.io.IOException - Thrown in case an exception occurs
*/
- protected void handleResponse(MessageContext msgContext, Object
httpResponse)
+ protected void handleResponse(MessageContext msgContext, HttpResponse
response)
throws IOException {
- HttpResponse response;
- if (httpResponse instanceof HttpResponse) {
- response = (HttpResponse) httpResponse;
- } else {
- log.trace("HttpResponse expected, but found - " + httpResponse);
- return;
- }
int statusCode = response.getStatusLine().getStatusCode();
HTTPStatusCodeFamily family = getHTTPStatusCodeFamily(statusCode);
log.trace("Handling response - " + statusCode);