Good Afternoon,

Currently I am writting an interceptor. During certain condition, it
needs to send the message ( a xml document, or location) back to the
client and stop further processing.
I thought if I do following. I will achieve it but I am not. Any
suggestion will be highly appreciated.
Thank you.
rn


this.message.getExchange().put(Response.class, rsp); // message is an
instance of  org.apache.cxf.message.Message
message.getInterceptorChain().abort();
return

rsp looks like following:


                ResponseBuilder builder=Response.ok(entity);  //entity is an 
xml document
                Response rsp=return builder.build();

Reply via email to