cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1099651 - /cxf/trunk/rt/frontend/jaxws/src/main/jaxws22/org/apache/cxf/transport/http_jaxws_spi/HttpServletResponseAdapter.java
Date Thu, 05 May 2011 01:36:04 GMT
Author: dkulp
Date: Thu May  5 01:36:04 2011
New Revision: 1099651

URL: http://svn.apache.org/viewvc?rev=1099651&view=rev
Log:
[CXF-3486] Implement unimplemented JAXWS2.2 SPI method
Patch from Magesh Kumar Bojan applied

Modified:
    cxf/trunk/rt/frontend/jaxws/src/main/jaxws22/org/apache/cxf/transport/http_jaxws_spi/HttpServletResponseAdapter.java

Modified: cxf/trunk/rt/frontend/jaxws/src/main/jaxws22/org/apache/cxf/transport/http_jaxws_spi/HttpServletResponseAdapter.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxws/src/main/jaxws22/org/apache/cxf/transport/http_jaxws_spi/HttpServletResponseAdapter.java?rev=1099651&r1=1099650&r2=1099651&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxws/src/main/jaxws22/org/apache/cxf/transport/http_jaxws_spi/HttpServletResponseAdapter.java
(original)
+++ cxf/trunk/rt/frontend/jaxws/src/main/jaxws22/org/apache/cxf/transport/http_jaxws_spi/HttpServletResponseAdapter.java
Thu May  5 01:36:04 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