You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Kiren Pillay <ki...@gmail.com> on 2011/10/14 16:07:52 UTC

Exposing input arguments to ExceptionMapper.

Hi all!

Is there a way to access the values/arguments of a JAX-RS request from
the Exception Mapper?

I am trying to get the methodSignature which I want to use as a lookup
for an audit logger.

Regards
Kiren

Re: Exposing input arguments to ExceptionMapper.

Posted by Kiren Pillay <ki...@gmail.com>.
Thanks, will give it a try!

On Fri, Oct 14, 2011 at 4:35 PM, Sergey Beryozkin <sb...@gmail.com> wrote:
> Hi
>
> You can get CXF MessageContext injected and then do
> OperationResourceInfo ori =
> (OperationResourceInfo)context.get(OperationResourceInfo.class);
> ori.getMethodToInvoke()
>
> HTH, Sergey
>
>
> On 14/10/11 15:07, Kiren Pillay wrote:
>>
>> Hi all!
>>
>> Is there a way to access the values/arguments of a JAX-RS request from
>> the Exception Mapper?
>>
>> I am trying to get the methodSignature which I want to use as a lookup
>> for an audit logger.
>>
>> Regards
>> Kiren
>
>

Re: Exposing input arguments to ExceptionMapper.

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi

You can get CXF MessageContext injected and then do
OperationResourceInfo ori = 
(OperationResourceInfo)context.get(OperationResourceInfo.class);
ori.getMethodToInvoke()

HTH, Sergey


On 14/10/11 15:07, Kiren Pillay wrote:
> Hi all!
>
> Is there a way to access the values/arguments of a JAX-RS request from
> the Exception Mapper?
>
> I am trying to get the methodSignature which I want to use as a lookup
> for an audit logger.
>
> Regards
> Kiren