cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
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 GMT
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) {



Mime
View raw message