Package org.rhq.core.pluginapi.util

Examples of org.rhq.core.pluginapi.util.SelectiveSkippingEntityResolver


        }

        boolean found = false;
        try {
            SAXBuilder builder = new SAXBuilder();
            SelectiveSkippingEntityResolver entityResolver = SelectiveSkippingEntityResolver.getDtdAndXsdSkippingInstance();
            builder.setEntityResolver(entityResolver);

            Document doc = builder.build(file);

            // Get the root element
View Full Code Here


        if (isUpdate) {
            if (!file.exists() || !file.canWrite()) {
                throw new IllegalStateException("Can't update file, as it is not writeable.");
            }
            SAXBuilder builder = new SAXBuilder();
            SelectiveSkippingEntityResolver entityResolver = SelectiveSkippingEntityResolver.getDtdAndXsdSkippingInstance();
            builder.setEntityResolver(entityResolver);

            doc = builder.build(file);
            root = doc.getRootElement();
            cacheMbean = findComponentElement(root, mbeanName);
View Full Code Here

    }

    private void loadConfiguratonFile() throws ParserConfigurationException, SAXException, IOException {
        DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
        DocumentBuilder docBuilder = docFactory.newDocumentBuilder();
        SelectiveSkippingEntityResolver entityResolver = SelectiveSkippingEntityResolver.getDtdAndXsdSkippingInstance();
        docBuilder.setEntityResolver(entityResolver);

        this.document = docBuilder.parse(this.configurationFile);
    }
View Full Code Here

            jfile = new JarFile(warFile);
            JarEntry entry = jfile.getJarEntry("WEB-INF/jboss-web.xml");
            if (entry != null) {
                is = jfile.getInputStream(entry);
                SAXBuilder saxBuilder = new SAXBuilder();
                SelectiveSkippingEntityResolver entityResolver = SelectiveSkippingEntityResolver
                    .getDtdAndXsdSkippingInstance();
                saxBuilder.setEntityResolver(entityResolver);

                Document doc = saxBuilder.build(is);
                Element root = doc.getRootElement(); // <jboss-web>
View Full Code Here

    private static Log log = LogFactory.getLog(ConnectionFactoryConfigurationEditor.class);

    public static Configuration loadConnectionFactory(File file, String name) {
        try {
            SAXBuilder builder = new SAXBuilder();
            SelectiveSkippingEntityResolver entityResolver = SelectiveSkippingEntityResolver.getDtdAndXsdSkippingInstance();
            builder.setEntityResolver(entityResolver);

            Document doc = builder.build(file);

            // Get the root element
View Full Code Here

        throws JDOMException, IOException {
        Document doc;
        Element root;
        if (deploymentFile.exists()) {
            SAXBuilder builder = new SAXBuilder();
            SelectiveSkippingEntityResolver entityResolver = SelectiveSkippingEntityResolver.getDtdAndXsdSkippingInstance();
            builder.setEntityResolver(entityResolver);

            doc = builder.build(deploymentFile);
            root = doc.getRootElement();
        } else {
View Full Code Here

        Document doc;
        Element root;
        if (deploymentFile != null && deploymentFile.exists()) {
            try {
                SAXBuilder builder = new SAXBuilder();
                SelectiveSkippingEntityResolver entityResolver = SelectiveSkippingEntityResolver.getDtdAndXsdSkippingInstance();
                builder.setEntityResolver(entityResolver);

                doc = builder.build(deploymentFile);
                root = doc.getRootElement();
View Full Code Here

         *
         *   </local-tx-datasource>
         */
        try {
            SAXBuilder builder = new SAXBuilder();
            SelectiveSkippingEntityResolver entityResolver = SelectiveSkippingEntityResolver.getDtdAndXsdSkippingInstance();
            builder.setEntityResolver(entityResolver);

            Document doc = builder.build(file);

            // Get the root element
View Full Code Here

            throw new RuntimeException("Datasource file " + deploymentFile + " is not writable. Aborting.");
        }

        if (deploymentFile.exists()) {
            SAXBuilder builder = new SAXBuilder();
            SelectiveSkippingEntityResolver entityResolver = SelectiveSkippingEntityResolver.getDtdAndXsdSkippingInstance();
            builder.setEntityResolver(entityResolver);

            doc = builder.build(deploymentFile);
            root = doc.getRootElement();
        } else {
View Full Code Here

            return;
        }
        if (deploymentFile.exists()) {
            try {
                SAXBuilder builder = new SAXBuilder();
                SelectiveSkippingEntityResolver entityResolver = SelectiveSkippingEntityResolver.getDtdAndXsdSkippingInstance();
                builder.setEntityResolver(entityResolver);

                doc = builder.build(deploymentFile);
                root = doc.getRootElement();
View Full Code Here

TOP

Related Classes of org.rhq.core.pluginapi.util.SelectiveSkippingEntityResolver

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.