Class PolicyResourceLoader


  • public class PolicyResourceLoader
    extends Object
    A collection of utility methods to load resources from the classpath.
    Author:
    Fabian Ritzmann
    • Constructor Detail

      • PolicyResourceLoader

        public PolicyResourceLoader()
    • Method Detail

      • 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.