com.sun.xml.ws.policy.jaxws
Class PolicyUtil

java.lang.Object
  extended by com.sun.xml.ws.policy.jaxws.PolicyUtil

public class PolicyUtil
extends Object


Constructor Summary
PolicyUtil()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.

configureModel

public static void configureModel(WSDLModel model,
                                  com.sun.xml.ws.policy.PolicyMap policyMap)
                           throws com.sun.xml.ws.policy.PolicyException
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 model
policyMap - The policy map
Throws:
com.sun.xml.ws.policy.PolicyException - If the list of WebServiceFeatures could not be computed

getPortScopedFeatures

public 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

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


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.