首页>代码>spring mvc+spring整合cxf服务端和客户端之间访问(jaxws与jaxrs的使用)>/WebServiceDemoAndSpringMVC/src/main/java/com/jbw/features/MyFeatures.java
package com.jbw.features;

import org.apache.cxf.Bus;
import org.apache.cxf.feature.AbstractFeature;
import org.apache.cxf.interceptor.InterceptorProvider;
import org.apache.cxf.interceptor.LoggingInInterceptor;
import org.apache.cxf.interceptor.LoggingOutInterceptor;

import com.jbw.intercepter.AuthInterceptor;
/**
 * 
 * @author Administrator
 * @Description 捆绑多个拦截器
 */
public class MyFeatures extends AbstractFeature{

	@Override
	protected void initializeProvider(InterceptorProvider provider, Bus bus) {
		super.initializeProvider(provider, bus);
		provider.getInInterceptors().add(new LoggingInInterceptor());
		provider.getInInterceptors().add(new LoggingOutInterceptor());
		provider.getInInterceptors().add(new AuthInterceptor());
	}
}
最近下载更多
liweiyishuo  LV3 2021年12月2日
miaozhenyu  LV2 2020年4月9日
eddxbb  LV3 2019年9月9日
wsupsup  LV16 2019年8月12日
wbbhappy  LV13 2019年2月21日
zhu6272051  LV1 2019年2月20日
jywdream  LV11 2019年2月13日
x646936674  LV10 2018年10月20日
67806686  LV1 2018年7月20日
ccccjb  LV3 2018年6月8日
最近浏览更多
我睡觉时不困  LV7 2022年11月19日
微信网友_6013757501329408  LV1 2022年6月22日
gaotieyou  LV5 2022年4月11日
liweiyishuo  LV3 2021年12月2日
郭亚鹏  LV12 2021年8月10日
一朝两卜視 2021年8月10日
暂无贡献等级
329512801  LV28 2021年6月23日
GameName  LV2 2021年6月7日
gao123qq  LV21 2021年5月7日
haishen  LV8 2021年4月11日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友