You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2013/01/24 23:58:14 UTC
svn commit: r1438252 - in /cxf/branches/2.7.x-fixes: ./
rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSInInterceptor.java
Author: sergeyb
Date: Thu Jan 24 22:58:14 2013
New Revision: 1438252
URL: http://svn.apache.org/viewvc?rev=1438252&view=rev
Log:
Merged revisions 1438251 via svnmerge from
https://svn.apache.org/repos/asf/cxf/trunk
........
r1438251 | sergeyb | 2013-01-24 22:54:33 +0000 (Thu, 24 Jan 2013) | 1 line
Minor updates to JAXRSInInterceptor
........
Modified:
cxf/branches/2.7.x-fixes/ (props changed)
cxf/branches/2.7.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSInInterceptor.java
Propchange: cxf/branches/2.7.x-fixes/
------------------------------------------------------------------------------
Merged /cxf/trunk:r1438251
Propchange: cxf/branches/2.7.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.
Modified: cxf/branches/2.7.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSInInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSInInterceptor.java?rev=1438252&r1=1438251&r2=1438252&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSInInterceptor.java (original)
+++ cxf/branches/2.7.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSInInterceptor.java Thu Jan 24 22:58:14 2013
@@ -59,7 +59,8 @@ public class JAXRSInInterceptor extends
private static final Logger LOG = LogUtils.getL7dLogger(JAXRSInInterceptor.class);
private static final ResourceBundle BUNDLE = BundleUtils.getBundle(JAXRSInInterceptor.class);
-
+ private static final String RESOURCE_METHOD = "org.apache.cxf.resource.method";
+ private static final String RESOURCE_OPERATION_NAME = "org.apache.cxf.resource.operation.name";
public JAXRSInInterceptor() {
super(Phase.UNMARSHAL);
}
@@ -249,8 +250,9 @@ public class JAXRSInInterceptor extends
private void setExchangeProperties(Message message, OperationResourceInfo ori,
MultivaluedMap<String, String> values,
int numberOfResources) {
+ message.put(Message.REST_MESSAGE, Boolean.TRUE);
message.getExchange().put(OperationResourceInfo.class, ori);
- message.put("org.apache.cxf.resource.method", ori.getMethodToInvoke());
+ message.put(RESOURCE_METHOD, ori.getMethodToInvoke());
message.put(URITemplate.TEMPLATE_PARAMETERS, values);
String plainOperationName = ori.getMethodToInvoke().getName();
@@ -258,7 +260,7 @@ public class JAXRSInInterceptor extends
plainOperationName = ori.getClassResourceInfo().getServiceClass().getSimpleName()
+ "#" + plainOperationName;
}
- message.getExchange().put("org.apache.cxf.resource.operation.name", plainOperationName);
+ message.getExchange().put(RESOURCE_OPERATION_NAME, plainOperationName);
boolean oneway = ori.isOneway()
|| MessageUtils.isTrue(HttpUtils.getProtocolHeader(message, Message.ONE_WAY_REQUEST, null));