Skip to content
Advertisement

JAX-RS LoggingFilter – Log request entities

I’m using a class implementing ClientRequestFilter

JavaScript

It is working fine except that after being logged the bodypart stream seems to be consumed and is not sent with the request. How can I do to display the bodypart stream and make it again available for the request itself ?

For the response it was the same problem and I managed to have it working with

JavaScript

Solution 1 : buffuring the stream.

JavaScript

But it is still not working.

Advertisement

Answer

My working solution

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement