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 3FDA61045D for ; Fri, 15 Nov 2013 12:37:38 +0000 (UTC) Received: (qmail 45384 invoked by uid 500); 15 Nov 2013 12:37:08 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 43415 invoked by uid 500); 15 Nov 2013 12:37:01 -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 42677 invoked by uid 99); 15 Nov 2013 12:36:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Nov 2013 12:36:58 +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; Fri, 15 Nov 2013 12:36:57 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id C170223888A6; Fri, 15 Nov 2013 12:36:37 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1542247 - /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java Date: Fri, 15 Nov 2013 12:36:37 -0000 To: commits@cxf.apache.org From: sergeyb@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20131115123637.C170223888A6@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sergeyb Date: Fri Nov 15 12:36:37 2013 New Revision: 1542247 URL: http://svn.apache.org/r1542247 Log: [CXF-5385] Updating JAXRSUtils to use JAX-RS 1.1 Response.getMetadata instead of 2.0 Response.getHeaders Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java?rev=1542247&r1=1542246&r2=1542247&view=diff ============================================================================== --- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java (original) +++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java Fri Nov 15 12:36:37 2013 @@ -1644,7 +1644,7 @@ public final class JAXRSUtils { public static void setMessageContentType(Message message, Response response) { if (response != null) { - Object ct = response.getHeaders().getFirst(HttpHeaders.CONTENT_TYPE); + Object ct = response.getMetadata().getFirst(HttpHeaders.CONTENT_TYPE); if (ct != null) { Exchange ex = message.getExchange(); if (ex.getInMessage() == message) {