Jsr181HandlerMapping

来源:互联网 发布:c语言中定义数组 编辑:程序博客网 时间:2024/06/17 18:30

import com.benben.Interceptor.AuthInterceptor;

    List<Interceptor<? extends Message>> interceptors = new ArrayList<Interceptor<? extends Message>>();
//    interceptors.add(new MessageInterceptor(Phase.RECEIVE));
//    interceptors.add(new MessageInterceptor(Phase.SEND));
    interceptors.add(new AuthInterceptor());
//    interceptors.add(new AuthInterceptor(Phase.SEND));    
    serverFactoryBean.setInInterceptors(interceptors);


//    serverFactoryBean.getServiceFactory().getServiceConfigurations().add(0, new AegisServiceConfiguration());
    serverFactoryBean.getServiceFactory().getServiceConfigurations().add(0, new JaxWsServiceConfiguration());

0 0
原创粉丝点击