Package org.owasp.dependencycheck.jaxb.pom

Examples of org.owasp.dependencycheck.jaxb.pom.MavenNamespaceFilter


     * {@link org.owasp.dependencycheck.jaxb.pom.generated.Model} object
     */
    private Model readPom(SAXSource source) throws AnalysisException {
        Model model = null;
        try {
            final XMLFilter filter = new MavenNamespaceFilter();
            final SAXParserFactory spf = SAXParserFactory.newInstance();
            final SAXParser sp = spf.newSAXParser();
            final XMLReader xr = sp.getXMLReader();
            filter.setParent(xr);
            final JAXBElement<Model> el = pomUnmarshaller.unmarshal(source, Model.class);
            model = el.getValue();
        } catch (SecurityException ex) {
            throw new AnalysisException(ex);
        } catch (ParserConfigurationException ex) {
View Full Code Here

TOP

Related Classes of org.owasp.dependencycheck.jaxb.pom.MavenNamespaceFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.