cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1458005 - /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSInInterceptor.java
Date Mon, 18 Mar 2013 21:17:49 GMT
Author: sergeyb
Date: Mon Mar 18 21:17:49 2013
New Revision: 1458005

URL: http://svn.apache.org/r1458005
Log:
Setting REST_MESSAGE exchange property at the top of JAXRSInInterceptor

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSInInterceptor.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSInInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSInInterceptor.java?rev=1458005&r1=1458004&r2=1458005&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSInInterceptor.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSInInterceptor.java
Mon Mar 18 21:17:49 2013
@@ -89,6 +89,7 @@ public class JAXRSInInterceptor extends 
             // it's a suspended invocation;
             return;
         }
+        message.getExchange().put(Message.REST_MESSAGE, Boolean.TRUE);
         
         try {
             processRequest(message);
@@ -217,7 +218,6 @@ public class JAXRSInInterceptor extends 
     private void setExchangeProperties(Message message, OperationResourceInfo ori, 
                                       MultivaluedMap<String, String> values,
                                       int numberOfResources) {
-        message.getExchange().put(Message.REST_MESSAGE, Boolean.TRUE);
         message.getExchange().put(OperationResourceInfo.class, ori);
         message.getExchange().put(JAXRSUtils.ROOT_RESOURCE_CLASS, ori.getClassResourceInfo());
         message.put(RESOURCE_METHOD, ori.getMethodToInvoke());



Mime
View raw message