Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 18F0E3DB4 for ; Thu, 5 May 2011 01:36:26 +0000 (UTC) Received: (qmail 28126 invoked by uid 500); 5 May 2011 01:36:26 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 28055 invoked by uid 500); 5 May 2011 01:36:26 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 28048 invoked by uid 99); 5 May 2011 01:36:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 01:36:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 01:36:25 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E842F23889E3; Thu, 5 May 2011 01:36:04 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@cxf.apache.org From: dkulp@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110505013604.E842F23889E3@eris.apache.org> 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) {