cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1099658 - in /cxf/branches/2.3.x-fixes: ./ rt/frontend/jaxws/src/main/jaxws22/org/apache/cxf/transport/http_jaxws_spi/HttpServletResponseAdapter.java
Date Thu, 05 May 2011 01:49:45 GMT
Author: dkulp
Date: Thu May  5 01:49:45 2011
New Revision: 1099658

URL: http://svn.apache.org/viewvc?rev=1099658&view=rev
Log:
Merged revisions 1099651 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1099651 | dkulp | 2011-05-04 21:36:04 -0400 (Wed, 04 May 2011) | 2 lines
  
  [CXF-3486] Implement unimplemented JAXWS2.2 SPI method
  Patch from Magesh Kumar Bojan applied
........

Modified:
    cxf/branches/2.3.x-fixes/   (props changed)
    cxf/branches/2.3.x-fixes/rt/frontend/jaxws/src/main/jaxws22/org/apache/cxf/transport/http_jaxws_spi/HttpServletResponseAdapter.java

Propchange: cxf/branches/2.3.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.3.x-fixes/rt/frontend/jaxws/src/main/jaxws22/org/apache/cxf/transport/http_jaxws_spi/HttpServletResponseAdapter.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.3.x-fixes/rt/frontend/jaxws/src/main/jaxws22/org/apache/cxf/transport/http_jaxws_spi/HttpServletResponseAdapter.java?rev=1099658&r1=1099657&r2=1099658&view=diff
==============================================================================
--- cxf/branches/2.3.x-fixes/rt/frontend/jaxws/src/main/jaxws22/org/apache/cxf/transport/http_jaxws_spi/HttpServletResponseAdapter.java
(original)
+++ cxf/branches/2.3.x-fixes/rt/frontend/jaxws/src/main/jaxws22/org/apache/cxf/transport/http_jaxws_spi/HttpServletResponseAdapter.java
Thu May  5 01:49:45 2011
@@ -116,7 +116,10 @@ class HttpServletResponseAdapter impleme
     }
 
     public void setContentLength(int len) {
-        throw new UnsupportedOperationException();
+        if (!committed) {
+            exchange.getResponseHeaders().put("Content-Length", 
+                Collections.singletonList(String.valueOf(len)));
+        }
     }
 
     public void setContentType(String type) {



Mime
View raw message