Hi

I'm implementing a cxf ws client, that's going to consume at huge amount of
data (500gb a month). Since its not possible to restrict the response size.

I would like to implement an interceptor, that gets the inputstream and
redirects it to a file, and if possible returns another xml object instead.
Since memory usage is the issue here. Therefor the interception, must happen
during reception of response data.
I have considered looking at the LoggingInInterceptor, but I'm not sure if
it intercepts at the correct phase.


1) Is it possible to redirect input to a file using InInterceptors ?

2) Which phase should such FileInInterceptor use ?

3) Is it possible to inject another xml response, that gets unmarchalled
into a jaxb pojo ?

4) Is this the right approach ?

Cheers

Thomas Engelschmidt

Reply via email to