use of org.apache.cxf.ws.policy.PolicyInterceptorProvider in project jbossws-cxf by jbossws.
the class PolicyInterceptorProviderInstallerInterceptor method handleMessage.
public void handleMessage(Message message) throws Fault {
PolicyInterceptorProviderRegistry reg = message.getExchange().getBus().getExtension(PolicyInterceptorProviderRegistry.class);
Set<PolicyInterceptorProvider> set = reg.get(customPolicyQname);
if (set == null || set.isEmpty()) {
set = new HashSet<PolicyInterceptorProvider>();
set.add(new IgnorablePolicyInterceptorProvider(customPolicyQname));
reg.register(customPolicyQname, set);
}
}
Aggregations