axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r500156 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/HTTPWorker.java
Date Fri, 26 Jan 2007 06:57:24 GMT
Author: deepal
Date: Thu Jan 25 22:57:23 2007
New Revision: 500156

URL: http://svn.apache.org/viewvc?view=rev&rev=500156
Log:
applied patch for AXIS2-824

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=500156&r1=500155&r2=500156
==============================================================================
--- 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
Thu Jan 25 22:57:23 2007
@@ -69,26 +69,6 @@
         String method = request.getRequestLine().getMethod();
         String soapAction = HttpUtils.getSoapAction(request);
 
-        // Adjust version and content chunking based on the config
-        boolean chunked = false;
-        TransportOutDescription transportOut = msgContext.getTransportOut();
-        if (transportOut != null) {
-            Parameter p = transportOut.getParameter(HTTPConstants.PROTOCOL_VERSION);
-            if (p != null) {
-                if (HTTPConstants.HEADER_PROTOCOL_10.equals(p.getValue())) {
-                    ver = HttpVersion.HTTP_1_0;
-                }
-            }
-            if (ver.greaterEquals(HttpVersion.HTTP_1_1)) {
-                p = transportOut.getParameter(HTTPConstants.HEADER_TRANSFER_ENCODING);
-                if (p != null) {
-                    if (HTTPConstants.HEADER_TRANSFER_ENCODING_CHUNKED.equals(p.getValue()))
{
-                        chunked = true;
-                    }
-                }
-            }
-        }
-
         if (method.equals(HTTPConstants.HEADER_GET)) {
             if (uri.equals("/favicon.ico")) {
                 response.setStatusLine(new StatusLine(ver, 301, "Redirect"));
@@ -107,7 +87,6 @@
                         String res = HTTPTransportReceiver.printServiceHTML(serviceName,
configurationContext);
                         StringEntity entity = new StringEntity(res);
                         entity.setContentType("text/html");
-                        entity.setChunked(chunked);
                         response.setEntity(entity);
                         return;
                     }
@@ -127,7 +106,6 @@
 
                     });
                     entity.setContentType("text/xml");
-                    entity.setChunked(chunked);
                     response.setEntity(entity);
                     return;
                 }
@@ -146,7 +124,6 @@
 
                     });
                     entity.setContentType("text/xml");
-                    entity.setChunked(chunked);
                     response.setEntity(entity);
                     return;
                 }
@@ -164,7 +141,6 @@
 
                     });
                     entity.setContentType("text/xml");
-                    entity.setChunked(chunked);
                     response.setEntity(entity);
                     return;
                 }
@@ -192,7 +168,6 @@
 
                         });
                         entity.setContentType("text/xml");
-                        entity.setChunked(chunked);
                         response.setEntity(entity);
                         return;
                     } else {
@@ -217,14 +192,12 @@
                     HTTPTransportReceiver.getGetRequestParameters(uri));
 
             if (processed) {
-                outbuffer.setChunked(chunked);
                 response.setEntity(outbuffer);
             } else {
                 response.setStatusLine(new StatusLine(ver, 200, "OK"));
                 String s = HTTPTransportReceiver.getServicesHTML(configurationContext);
                 StringEntity entity = new StringEntity(s);
                 entity.setContentType("text/html");
-                entity.setChunked(chunked);
                 response.setEntity(entity);
             }
 
@@ -264,7 +237,6 @@
               }
             }
             
-            outbuffer.setChunked(chunked);
             response.setEntity(outbuffer);
 
         } else {



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


Mime
View raw message