Hi, I am implementing a jax-rs filter, and I need to read the associated content of the message.
So I am doing this: message.getContent(InputStream.class); The problem is that then in the pipeline the JacksonJsonProvider gets called in order to deserialize the content and as the input stream has already been read it generates an Exception: *No content to map to Object due to end of input.* Which would be the most effective way to handle this? 1) Copy the inputStream into another input stream and replace the Message input stream with this one so its available to read on Deserialization? 2) Move the jax-rs filter into a CXF filter to the READ phase so it would already have the deserialized object on the message? 3) ??? Many Thanks, Esteban.
