Hi,

First of all I apologize if this has been asked before. 
I wanted to ask for good solution that won't be too inefficient.
I do know about cxf interceptors and also request handlers method to
add to chain of inbound/outbound but not sure what would be a good place so 
please give me some pointers/advice.

We are using cxf jax-rs rest with jackson as our json serializer/deserializer.
We are also using cxf java proxies on client side to call our code so we do 
have control over our callers and would like to apply a custom handling to 
these (yes I know it won't support per say web callers but the services are 
right now internal only and will be consumed only by java proxy client).

On proxy/client side I would like to overwrite path parameters and do some 
custom modifications before it's handed it to server (say add some wrapping to 
it or extra characters .. maybe mask a password but other usages too)
On server side I would like to revert those and unwrap and get back the 
original parameter.
@PathParam("test1") test1

on client take test1 original value and add some extra characters to it
on server side remove the extra characters and then pass it on to the service 
method. Basically the java client and service impl code should not need to know 
about this nor juggly this portion.. all of it done in interceptors/request 
handlers prior to getting into service layer code and post leaving client 
caller.

So should i extend JAXRSInInterceptor and do this there or creae a new 
interceptor of my own and add it to the chain (out on client side, in on server 
side).

please advice if you have done similiar thing on your end. I noticed 
JAXRSInInterceptor does parameter settings so I would hoping I could tap into 
that and not redo that portion and slow down our services.

thanks,
parwiz

Reply via email to