org.mule.tools.cxf.utils.policy
Class PolicyRegistrator

java.lang.Object
  extended by org.mule.tools.cxf.utils.policy.PolicyRegistrator

public class PolicyRegistrator
extends Object

This class knows how to registers CXF PolicyInterceptorProvider in a Client. Which are needed by CXF 2.6.0 when custom policy are defined in the service definition. Usually you'll notice them cause they have different name spaces.

Author:
damiansima

Constructor Summary
PolicyRegistrator()
           
 
Method Summary
 void addAllPolicyProviders(List<org.apache.cxf.ws.policy.PolicyInterceptorProvider> policyProvidersList)
          Add all a PolicyInterceptorProvider to the internal structure for future registration in a given client
 void addPolicyProvider(org.apache.cxf.ws.policy.PolicyInterceptorProvider policyPorvider)
          Add a PolicyInterceptorProvider to the internal structure for future registration in a given client
 void clearPolicyProviders()
          Clear all PolicyInterceptorProvider from the internal structure
 List<org.apache.cxf.ws.policy.PolicyInterceptorProvider> getPolicyProviders()
           
 org.apache.cxf.endpoint.Client registerPolicyProviders(org.apache.cxf.endpoint.Client client)
          Register all the PolicyInterceptorProvider in the Client provided
 org.apache.cxf.endpoint.Client registerPolicyProviders(Object servicePort)
          Register all the PolicyInterceptorProvider in the servicePort provided
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyRegistrator

public PolicyRegistrator()
Method Detail

addPolicyProvider

public void addPolicyProvider(org.apache.cxf.ws.policy.PolicyInterceptorProvider policyPorvider)
Add a PolicyInterceptorProvider to the internal structure for future registration in a given client

Parameters:
policyPorvider -

addAllPolicyProviders

public void addAllPolicyProviders(List<org.apache.cxf.ws.policy.PolicyInterceptorProvider> policyProvidersList)
Add all a PolicyInterceptorProvider to the internal structure for future registration in a given client

Parameters:
policyProvidersList -

getPolicyProviders

public List<org.apache.cxf.ws.policy.PolicyInterceptorProvider> getPolicyProviders()

clearPolicyProviders

public void clearPolicyProviders()
Clear all PolicyInterceptorProvider from the internal structure


registerPolicyProviders

public org.apache.cxf.endpoint.Client registerPolicyProviders(Object servicePort)
Register all the PolicyInterceptorProvider in the servicePort provided

Parameters:
servicePort -
Returns:
the client with the PolicyInterceptorProvider registered in it

registerPolicyProviders

public org.apache.cxf.endpoint.Client registerPolicyProviders(org.apache.cxf.endpoint.Client client)
Register all the PolicyInterceptorProvider in the Client provided

Parameters:
client -
Returns:
the client with the PolicyInterceptorProvider registered in it


Copyright © 2013. All Rights Reserved.