Hi
You can use JAX-RS 2.0 ContainerResponseFilter with 2.0 ResourceInfo [1]
context injected into it. Or access Response annotations (method
annotations by default) directly from ContainerResponseFilter response
context.
In a pure CXF out interceptor you can get it from the exchange:
Operati
Thanks, Dan!
One more question, how do I retrieve the method called (I need to retrieve
the annotations from it) if it's a JAX-RS method?
I have used this for in interceptors, but doesn't seem to be working for
out interceptor:
private Method getTargetMethod(Message m) {
BindingOpera
Move your interceptor up into the PRE_LOGICAL with a
addBefore(WrapperClassOutInterceptor.class.getName()). The list should then
just have the return value (and any holders for other outs). The
WrapperClassOutInterceptor combines those into the asm generate object.
Dan
On Jul 27, 2014, at
Hi,
I want to filter some return values in an out interceptor, but am
struggling to figure out how to retrieve it.
I have tried this:
MessageContentsList outObjects =
MessageContentsList.getContentsList(message);
Exchange exchange = message.getExchange();
OperationInfo op