1 package com.freemindcafe.apache.cxf.jaxrs.sample4;
3 import java.util.ArrayList;
6 import org.
apache.cxf.interceptor.Interceptor;
7 import org.
apache.cxf.interceptor.LoggingInInterceptor;
8 import org.
apache.cxf.interceptor.LoggingOutInterceptor;
9 import org.
apache.cxf.jaxrs.JAXRSServerFactoryBean;
11 import org.junit.Test;
16 public void send_list_in_the_response()
throws Exception{
17 JAXRSServerFactoryBean sf =
new JAXRSServerFactoryBean();
19 sf.setAddress(
"http://localhost:9000/");
20 final List<Interceptor<? extends Message>> list =
new ArrayList<Interceptor<? extends Message>>();
21 list.add(
new LoggingInInterceptor());
22 list.add(
new LoggingOutInterceptor());
23 sf.setInInterceptors(list);