public class PolicyUtil extends Object
| Constructor and Description |
|---|
PolicyUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
addServiceProviders(Collection<T> providers,
Class<T> service)
Adds the dynamically discovered implementations for the given service class
to the given collection.
|
static void |
configureModel(WSDLModel model,
com.sun.xml.ws.policy.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(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
|
public static <T> void addServiceProviders(Collection<T> providers, Class<T> service)
T - The type of the service class.providers - The discovered implementations are added to this collection.service - The service interface.public static void configureModel(WSDLModel model, com.sun.xml.ws.policy.PolicyMap policyMap) throws com.sun.xml.ws.policy.PolicyException
model - The WSDL modelpolicyMap - The policy mapcom.sun.xml.ws.policy.PolicyException - If the list of WebServiceFeatures could not be computedpublic static Collection<WebServiceFeature> getPortScopedFeatures(com.sun.xml.ws.policy.PolicyMap policyMap, QName serviceName, QName portName)
policyMap - The service policiesserviceName - The service nameportName - The service port nameCopyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.