Package com.sun.xml.ws.policy.parser
Class PolicyResourceLoader
- java.lang.Object
-
- com.sun.xml.ws.policy.parser.PolicyResourceLoader
-
public class PolicyResourceLoader extends Object
A collection of utility methods to load resources from the classpath.- Author:
- Fabian Ritzmann
-
-
Constructor Summary
Constructors Constructor Description PolicyResourceLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.sun.xml.ws.api.model.wsdl.WSDLModelgetWsdlModel(URL resourceUrl, boolean isClient)Parse the given URL and return the resulting WSDLModel.
-
-
-
Method Detail
-
getWsdlModel
public static com.sun.xml.ws.api.model.wsdl.WSDLModel getWsdlModel(URL resourceUrl, boolean isClient) throws IOException, XMLStreamException, SAXException
Parse the given URL and return the resulting WSDLModel. Note that this method uses the PolicyResolverFactory.DEFAULT_POLICY_RESOLVER instead of the PolicyResolver that is injected at runtime.- Parameters:
resourceUrl- URL for a valid WSDL document.isClient- True if client-side parser, false otherwise.- Returns:
- The WSDLModel that corresponds to the given WSDL document.
- Throws:
IOException- If resourceUrl could not be opened.XMLStreamException- If document could not be read.SAXException- If document could not be parsed.
-
-