Package com.sun.xml.ws.policy.parser
Class PolicyResourceLoader
java.lang.Object
com.sun.xml.ws.policy.parser.PolicyResourceLoader
A collection of utility methods to load resources from the classpath.
- Author:
- Fabian Ritzmann
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.sun.xml.ws.api.model.wsdl.WSDLModelgetWsdlModel(URL resourceUrl, boolean isClient) Parse the given URL and return the resulting WSDLModel.
-
Constructor Details
-
PolicyResourceLoader
public PolicyResourceLoader()
-
-
Method Details
-
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.
-