1 package com.freemindcafe.apache.cxf.jaxrs.sample7;
3 import org.
apache.cxf.interceptor.LoggingInInterceptor;
4 import org.
apache.cxf.interceptor.LoggingOutInterceptor;
5 import org.
apache.cxf.jaxrs.JAXRSServerFactoryBean;
11 public void test()
throws Exception{
12 JAXRSServerFactoryBean sf =
new JAXRSServerFactoryBean();
14 sf.setAddress(
"http://localhost:9000/tickets");
17 sf.getInInterceptors().add(
new LoggingInInterceptor());
20 sf.getOutInterceptors().add(
new LoggingOutInterceptor());