本文整理汇总了Java中org.apache.cxf.phase.PhaseInterceptor类的典型用法代码示例。如果您正苦于以下问题:Java PhaseInterceptor类的具体用法?Java PhaseInterceptor怎么用?Java PhaseInterceptor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PhaseInterceptor类属于org.apache.cxf.phase包,在下文中一共展示了PhaseInterceptor类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: removeInterceptorWhichIsInThePhases
import org.apache.cxf.phase.PhaseInterceptor; //导入依赖的package包/类
protected void removeInterceptorWhichIsInThePhases(List<Interceptor<? extends Message>> interceptors, String[] phaseNames, Set<String> needToBeKept) {
for (Interceptor<? extends Message> i : interceptors) {
if (i instanceof PhaseInterceptor) {
PhaseInterceptor<? extends Message> p = (PhaseInterceptor<? extends Message>) i;
for (String phaseName : phaseNames) {
if (p.getPhase().equals(phaseName)) {
// To support the old API
if (needToBeKept == null) {
getLogger().info("removing the interceptor " + p);
interceptors.remove(p);
break;
} else if (!needToBeKept.contains(p.getClass().getName())) {
getLogger().info("removing the interceptor " + p);
interceptors.remove(p);
break;
}
}
}
}
}
}
开发者ID:HydAu,项目名称:Camel,代码行数:22,代码来源:AbstractDataFormatFeature.java
示例2: removeInterceptorWhichIsOutThePhases
import org.apache.cxf.phase.PhaseInterceptor; //导入依赖的package包/类
protected void removeInterceptorWhichIsOutThePhases(List<Interceptor<? extends Message>> interceptors, String[] phaseNames, Set<String> needToBeKept) {
for (Interceptor<? extends Message> i : interceptors) {
boolean outside = false;
if (i instanceof PhaseInterceptor) {
PhaseInterceptor<? extends Message> p = (PhaseInterceptor<? extends Message>) i;
for (String phaseName : phaseNames) {
if (p.getPhase().equals(phaseName)) {
outside = true;
break;
}
}
if (!outside) {
// To support the old API
if (needToBeKept == null) {
getLogger().info("removing the interceptor " + p);
interceptors.remove(p);
} else if (!needToBeKept.contains(p.getClass().getName())) {
getLogger().info("removing the interceptor " + p);
interceptors.remove(p);
}
}
}
}
}
开发者ID:HydAu,项目名称:Camel,代码行数:25,代码来源:AbstractDataFormatFeature.java
示例3: getAdditionalInterceptors
import org.apache.cxf.phase.PhaseInterceptor; //导入依赖的package包/类
public Collection<PhaseInterceptor<? extends Message>> getAdditionalInterceptors() {
return null;
}
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:4,代码来源:OAuthInterceptor.java
示例4: getAdditionalInterceptors
import org.apache.cxf.phase.PhaseInterceptor; //导入依赖的package包/类
@Override
public Collection<PhaseInterceptor<? extends Message>> getAdditionalInterceptors() {
return null;
}
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:5,代码来源:SpringAuthenticationJanitorInterceptor.java
注:本文中的org.apache.cxf.phase.PhaseInterceptor类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论