public class CustomWriterInterceptor implements WriterInterceptor {
@Override
public void aroundWriteTo(WriterInterceptorContext context)
throws IOException, WebApplicationException {
context.getHeaders().add("", "");
context.getHeaders().putSingle("",
"");
//do your login logic
context.proceed();
}
}
do your logout in readerInterceptor.
Neal
--
View this message in context:
http://cxf.547215.n5.nabble.com/Using-Interceptors-on-JAX-RS-2-0-Client-tp5767089p5767090.html
Sent from the cxf-dev mailing list archive at Nabble.com.