cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1480102 - /cxf/branches/2.7.x-fixes/rt/rs/extensions/providers/src/main/java/org/apache/cxf/jaxrs/provider/jsonp/JsonpJaxrsWriterInterceptor.java
Date Tue, 07 May 2013 21:43:27 GMT
Author: sergeyb
Date: Tue May  7 21:43:27 2013
New Revision: 1480102

URL: http://svn.apache.org/r1480102
Log:
Fixing a compilation failure on 2.7.x

Modified:
    cxf/branches/2.7.x-fixes/rt/rs/extensions/providers/src/main/java/org/apache/cxf/jaxrs/provider/jsonp/JsonpJaxrsWriterInterceptor.java

Modified: cxf/branches/2.7.x-fixes/rt/rs/extensions/providers/src/main/java/org/apache/cxf/jaxrs/provider/jsonp/JsonpJaxrsWriterInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/rt/rs/extensions/providers/src/main/java/org/apache/cxf/jaxrs/provider/jsonp/JsonpJaxrsWriterInterceptor.java?rev=1480102&r1=1480101&r2=1480102&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/rt/rs/extensions/providers/src/main/java/org/apache/cxf/jaxrs/provider/jsonp/JsonpJaxrsWriterInterceptor.java
(original)
+++ cxf/branches/2.7.x-fixes/rt/rs/extensions/providers/src/main/java/org/apache/cxf/jaxrs/provider/jsonp/JsonpJaxrsWriterInterceptor.java
Tue May  7 21:43:27 2013
@@ -29,7 +29,7 @@ import org.apache.cxf.common.util.String
 import org.apache.cxf.jaxrs.utils.JAXRSUtils;
 import org.apache.cxf.message.Exchange;
 import org.apache.cxf.message.Message;
-
+import org.apache.cxf.phase.PhaseInterceptorChain;
 /**
  * Appends the jsonp callback to json responses when the '_jsonp' parameter has been set
in the querystring.
  */
@@ -43,7 +43,7 @@ public class JsonpJaxrsWriterInterceptor
   
     @Override
     public void aroundWriteTo(WriterInterceptorContext context) throws IOException, WebApplicationException
{
-        String callback = getCallbackValue(JAXRSUtils.getCurrentMessage());
+        String callback = getCallbackValue(PhaseInterceptorChain.getCurrentMessage());
         if (!StringUtils.isEmpty(callback)) {
             context.getHeaders().putSingle(Message.CONTENT_TYPE, 
                                            JAXRSUtils.toMediaType(getMediaType()));



Mime
View raw message