synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asan...@apache.org
Subject svn commit: r543774 - in /webservices/synapse/trunk/java/modules/nhttp/src/org/apache/axis2/transport/nhttp: Axis2HttpRequest.java ServerWorker.java
Date Sat, 02 Jun 2007 19:40:25 GMT
Author: asankha
Date: Sat Jun  2 12:40:24 2007
New Revision: 543774

URL: http://svn.apache.org/viewvc?view=rev&rev=543774
Log:
performance improvements. One change is minor and side-effect free. The other disables caching
when serializing an outgoing request at Axiom level

Modified:
    webservices/synapse/trunk/java/modules/nhttp/src/org/apache/axis2/transport/nhttp/Axis2HttpRequest.java
    webservices/synapse/trunk/java/modules/nhttp/src/org/apache/axis2/transport/nhttp/ServerWorker.java

Modified: webservices/synapse/trunk/java/modules/nhttp/src/org/apache/axis2/transport/nhttp/Axis2HttpRequest.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/nhttp/src/org/apache/axis2/transport/nhttp/Axis2HttpRequest.java?view=diff&rev=543774&r1=543773&r2=543774
==============================================================================
--- webservices/synapse/trunk/java/modules/nhttp/src/org/apache/axis2/transport/nhttp/Axis2HttpRequest.java
(original)
+++ webservices/synapse/trunk/java/modules/nhttp/src/org/apache/axis2/transport/nhttp/Axis2HttpRequest.java
Sat Jun  2 12:40:24 2007
@@ -164,7 +164,7 @@
         log.debug("start streaming outgoing http request");
         OutputStream out = Channels.newOutputStream(pipe.sink());
 
-        messageFormatter.writeTo(msgContext, format, out, true);
+        messageFormatter.writeTo(msgContext, format, out, false);
             try {
             out.flush();
             out.close();

Modified: webservices/synapse/trunk/java/modules/nhttp/src/org/apache/axis2/transport/nhttp/ServerWorker.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/nhttp/src/org/apache/axis2/transport/nhttp/ServerWorker.java?view=diff&rev=543774&r1=543773&r2=543774
==============================================================================
--- webservices/synapse/trunk/java/modules/nhttp/src/org/apache/axis2/transport/nhttp/ServerWorker.java
(original)
+++ webservices/synapse/trunk/java/modules/nhttp/src/org/apache/axis2/transport/nhttp/ServerWorker.java
Sat Jun  2 12:40:24 2007
@@ -201,13 +201,14 @@
     private void processPost() {
 
         try {
+            Header contentType = request.getFirstHeader(HTTP.CONTENT_TYPE);
+            Header soapAction  = request.getFirstHeader(SOAPACTION);
+
             HTTPTransportUtils.processHTTPPostRequest(
                 msgContext, is,
                 os,
-                (request.getFirstHeader(HTTP.CONTENT_TYPE) != null ?
-                    request.getFirstHeader(HTTP.CONTENT_TYPE).getValue() : null),
-                (request.getFirstHeader(SOAPACTION) != null ?
-                    request.getFirstHeader(SOAPACTION).getValue() : null),
+                (contentType != null ? contentType.getValue() : null),
+                (soapAction != null  ? soapAction.getValue()  : null),
                 request.getRequestLine().getUri());
         } catch (AxisFault e) {
             handleException("Error processing POST request ", e);



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


Mime
View raw message