cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: UsernameTokenValidator
Date Wed, 16 May 2012 15:35:21 GMT

You can get the current message via:

PhaseInterceptorChain.getCurrentMessage()

That can work around the issue until it can be fixed.   That said, a  patch 
that fixes the issue would be quite welcome.

Dan




On Tuesday, May 15, 2012 05:55:27 PM Penmatsa, Vinay wrote:
> Hi,
> I just upgraded to 2.6 from 2.4.1
> I had a custom UsernameTokenValidator where I override
> verifyDigestPassword(UsernameToken usernameToken, RequestData data).
> Within that I had the following code to get access to request object.
> 
> #######
> SoapMessage soapMsg = (SoapMessage)data.getMsgContext();
> HttpServletRequest request =
> (HttpServletRequest)soapMsg.get(AbstractHTTPDestination.HTTP_REQUEST);
> #######
> 
> 
> In 2.6, soapMsg is null. Is there any other way I can get the
> HTTP_REQUEST?
> 
> 
> Regards,
> Vinay
-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com


Mime
View raw message