Package com.sun.xml.ws.policy.jaxws
Class PolicyUtil
java.lang.Object
com.sun.xml.ws.policy.jaxws.PolicyUtil
- Author:
- Rama Pulavarthi, Fabian Ritzmann
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> voidaddServiceProviders(Collection<T> providers, Class<T> service) Adds the dynamically discovered implementations for the given service class to the given collection.static voidconfigureModel(WSDLModel model, PolicyMap policyMap) Iterates through the ports in the WSDL model, for each policy in the policy map that is attached at endpoint scope computes a list of corresponding WebServiceFeatures and sets them on the port.static Collection<WebServiceFeature>getPortScopedFeatures(PolicyMap policyMap, QName serviceName, QName portName) Returns the list of features that correspond to the policies in the policy map for a give port
-
Constructor Details
-
PolicyUtil
public PolicyUtil()
-
-
Method Details
-
addServiceProviders
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.
-
configureModel
Iterates through the ports in the WSDL model, for each policy in the policy map that is attached at endpoint scope computes a list of corresponding WebServiceFeatures and sets them on the port.- Parameters:
model- The WSDL modelpolicyMap- The policy map- Throws:
PolicyException- If the list of WebServiceFeatures could not be computed
-
getPortScopedFeatures
public static Collection<WebServiceFeature> getPortScopedFeatures(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 policiesserviceName- The service nameportName- The service port name- Returns:
- List of features for the given port corresponding to the policies in the map
-