Search in sources :

Example 1 with PolicyInterceptorProvider

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);
    }
}
Also used : PolicyInterceptorProviderRegistry(org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistry) IgnorablePolicyInterceptorProvider(org.apache.cxf.ws.policy.IgnorablePolicyInterceptorProvider) PolicyInterceptorProvider(org.apache.cxf.ws.policy.PolicyInterceptorProvider) IgnorablePolicyInterceptorProvider(org.apache.cxf.ws.policy.IgnorablePolicyInterceptorProvider)

Aggregations

IgnorablePolicyInterceptorProvider (org.apache.cxf.ws.policy.IgnorablePolicyInterceptorProvider)1 PolicyInterceptorProvider (org.apache.cxf.ws.policy.PolicyInterceptorProvider)1 PolicyInterceptorProviderRegistry (org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistry)1