geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r531496 - /geronimo/server/trunk/modules/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/GeronimoDestination.java
Date Mon, 23 Apr 2007 15:11:14 GMT
Author: gawor
Date: Mon Apr 23 08:11:11 2007
New Revision: 531496

URL: http://svn.apache.org/viewvc?view=rev&rev=531496
Log:
delay setting of the response code

Modified:
    geronimo/server/trunk/modules/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/GeronimoDestination.java

Modified: geronimo/server/trunk/modules/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/GeronimoDestination.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/GeronimoDestination.java?view=diff&rev=531496&r1=531495&r2=531496
==============================================================================
--- geronimo/server/trunk/modules/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/GeronimoDestination.java
(original)
+++ geronimo/server/trunk/modules/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/GeronimoDestination.java
Mon Apr 23 08:11:11 2007
@@ -211,13 +211,7 @@
         public void send(Message message) throws IOException {
             Response response = (Response)request.get(Response.class);
             
-            // 1. handle response code
-            Integer i = (Integer) message.get(Message.RESPONSE_CODE);
-            if (i != null) {
-                response.setStatusCode(i.intValue());
-            }
-
-            // 2. handle response headers
+            // handle response headers
             updateResponseHeaders(message);
 
             Map<String, List<String>> protocolHeaders = 
@@ -331,11 +325,18 @@
                 return;
             }
 
+            // set response code
+            Integer i = (Integer) this.message.get(Message.RESPONSE_CODE);
+            if (i != null) {
+                this.response.setStatusCode(i.intValue());
+            }
+            
+            // set content-type
             setContentType(this.message, this.response);
-
+            
             this.rawOutputStream = this.response.getOutputStream();
         }
 
     }
        
-}
\ No newline at end of file
+}



Mime
View raw message