You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by St...@faa.gov on 2014/09/16 22:13:36 UTC

org.apache.cxf.ws.addressing.ContextUtils.getAction() in CXF 2.7

I'm porting some legacy code to use CXF 2.7.12 that used ContextUtils.getAction(Message) from CXF 2.3. Unfortunately, it looks like that method was removed after 2.6 and is no longer available in 2.7. Does anyone know, was the method moved to some other utility class, or do I need to implement a version locally? I've been searching the Jira and release notes and so far haven't been able to find anything.

Thanx,

Stephen W. Chappell

Re: org.apache.cxf.ws.addressing.ContextUtils.getAction() in CXF 2.7

Posted by Daniel Kulp <dk...@apache.org>.
On Sep 16, 2014, at 4:13 PM, Stephen.CTR.Chappell@faa.gov wrote:

> I'm porting some legacy code to use CXF 2.7.12 that used ContextUtils.getAction(Message) from CXF 2.3. Unfortunately, it looks like that method was removed after 2.6 and is no longer available in 2.7. Does anyone know, was the method moved to some other utility class, or do I need to implement a version locally? I've been searching the Jira and release notes and so far haven't been able to find anything.

Can I ask why you need this?   For the most part, if your interceptor runs after the MAPAggregator, then you should just have to grab  the addressing stuff from the message via something like:

 AddressingProperties theMaps = 
                ContextUtils.retrieveMAPs(message, false, true);

and use the action that CXF computed in there.


-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com