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
|
Method Summary |
static WSDLModel |
getWsdlModel(URL resourceUrl,
boolean isClient)
Parse the given URL and return the resulting WSDLModel. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PolicyResourceLoader
public PolicyResourceLoader()
getWsdlModel
public static 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.
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.