cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: WS policy alternative selector based on a particular operation in a client
Date Fri, 10 Oct 2014 11:33:57 GMT

On Oct 9, 2014, at 8:01 PM, Jason Pell <jason@pellcorp.com> wrote:

> I can't upgrade to 3.x as yet. So I need to figure out a way to do this in
> 2.7.

I THINK you should be able to do a PhaseInterceptorChain.getCurrentMessage() within the AlternativeSelector
to get the message and grab the operation out of there. 

Dan



> On 10/10/2014 4:18 AM, "Daniel Kulp" <dkulp@apache.org> wrote:
> 
>> 
>> On Oct 9, 2014, at 5:41 AM, Jason Pell <jason@pellcorp.com> wrote:
>> 
>>> For instance I want to force choosing username password token for one
>>> method call and then a saml bearer token for all others.
>>> 
>>> I don't have enough info in the assertor http conduit
>> 
>> In the AlternativeSelector for CXF 3.0.x, we added the Message as a
>> parameter.   Thus, you should be able to look at the operation being called
>> and select different alternatives.   That param was added to specifically
>> address this type of use case.  (as well as ability to look in the message
>> to see if things like usernames/passwords are available and maybe select a
>> different alternative if not).
>> 
>> 
>> 
>> --
>> Daniel Kulp
>> dkulp@apache.org - http://dankulp.com/blog
>> Talend Community Coder - http://coders.talend.com
>> 
>> 

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


Mime
View raw message