Should I avoid using "public T getContent(Class format)" method (org.apache.cxf.message.MessageImpl)?

2019-03-04 Thread Pablo Caballero
Hi folks! I'm writing a REST client to interact with a service exposed by my home router (*1). The service consist of a set of operations exposed in a unique URI ( https://xxx.xxx.xxx.xxx/JNAP/). The operation being called depends on the value of a special http header (X-JNAP-Action). Some operat

[Reading CXF message content] What is CachedOutputStream's primary purpose and how its different than DelegatingInputStream ?

2019-03-04 Thread Varun Singhal
Hi all, Greetings ! I have designed a interceptor that runs in RECEIVE phase and takes a decision whether to modify the header of an incoming SOAP request OR not. It does so by reading the message's contents and parsing it into a XML document instance. Here is the code: //get message as