Class PolicyUtil


  • public class PolicyUtil
    extends Object
    Author:
    Rama Pulavarthi, Fabian Ritzmann
    • Constructor Detail

      • PolicyUtil

        public PolicyUtil()
    • Method Detail

      • addServiceProviders

        public static <T> void addServiceProviders​(Collection<T> providers,
                                                   Class<T> service)
        Adds the dynamically discovered implementations for the given service class to the given collection.
        Type Parameters:
        T - The type of the service class.
        Parameters:
        providers - The discovered implementations are added to this collection.
        service - The service interface.
      • getPortScopedFeatures

        public static Collection<javax.xml.ws.WebServiceFeature> getPortScopedFeatures​(com.sun.xml.ws.policy.PolicyMap policyMap,
                                                                                       QName serviceName,
                                                                                       QName portName)
        Returns the list of features that correspond to the policies in the policy map for a give port
        Parameters:
        policyMap - The service policies
        serviceName - The service name
        portName - The service port name
        Returns:
        List of features for the given port corresponding to the policies in the map