thank you for the reply, the you listed code isn't for a client side?
I'm trying something like this
OutputStream os = message.getContent(OutputStream.class);
// CacheAndWriteOutputStream cwos = new
CacheAndWriteOutputStream(os);
CachedOutputStream cachedOutputStream = new CachedOutputStream();
cachedOutputStream.setMaxSize(300L);
try {
cachedOutputStream.writeCacheTo(os);
} catch (IOException e) {
e.printStackTrace();
}
message.setContent(OutputStream.class, cachedOutputStream);
writeCacheTo will throw an CacheExceededException if the size exceed what's
configured, what's the best solution?
--
View this message in context:
http://cxf.547215.n5.nabble.com/extract-Http-Headers-tp5713851p5713855.html
Sent from the cxf-user mailing list archive at Nabble.com.