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 ke...@apache.org on 2007/03/02 12:52:42 UTC

svn commit: r513716 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPWorker.java

Author: keithc
Date: Fri Mar  2 03:52:41 2007
New Revision: 513716

URL: http://svn.apache.org/viewvc?view=rev&rev=513716
Log:
Removing unnecessary if condition

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPWorker.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPWorker.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPWorker.java?view=diff&rev=513716&r1=513715&r2=513716
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPWorker.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPWorker.java Fri Mar  2 03:52:41 2007
@@ -194,8 +194,6 @@
             // deal with GET request
             pi = RESTUtil.processURLRequest(msgContext, outbuffer.getOutputStream(), null);
 
-            handleResponse(pi, response, outbuffer, ver, configurationContext, msgContext);
-
         } else if (method.equals(HTTPConstants.HEADER_POST)) {
             // deal with POST request
 
@@ -231,7 +229,7 @@
 
             throw new MethodNotSupportedException(method + " method not supported");
         }
-        handleResponse(pi, response, outbuffer, ver, configurationContext, msgContext);
+        handleResponse(pi, response, outbuffer, msgContext);
         // Finalize response
         OperationContext operationContext = msgContext.getOperationContext();
         Object contextWritten = null;
@@ -254,10 +252,8 @@
     }
 
     private void handleResponse(InvocationResponse pi, HttpResponse response,
-                                OutputBuffer outbuffer, HttpVersion ver,
-                                ConfigurationContext configurationContext, MessageContext msgContext)
+                                OutputBuffer outbuffer,MessageContext msgContext)
             throws IOException {
-        if (pi.equals(InvocationResponse.CONTINUE)) {
             Boolean holdResponse = (Boolean) msgContext.getProperty(RequestResponseTransport.HOLD_RESPONSE);
 
             if (pi.equals(InvocationResponse.SUSPEND) || (holdResponse != null && Boolean.TRUE.equals(holdResponse))) {
@@ -270,7 +266,6 @@
             }
 
             response.setEntity(outbuffer);
-        }
     }
 
     private String processContentType(HttpEntity inentity, MessageContext msgContext) {



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org