- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.codehaus.cargo.util.XmlUtils.<init>()
方法的一些代码示例,展示了XmlUtils.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlUtils.<init>()
方法的具体详情如下:
包路径:org.codehaus.cargo.util.XmlUtils
类名称:XmlUtils
方法名:<init>
[英]default constructor will assign no namespaces and use a default file handler.
[中]默认构造函数将不分配名称空间,并使用默认的文件处理程序。
代码示例来源:origin: org.codehaus.cargo/cargo-core-api-util
/**
* creates the instance, which will use the specified @{link FileHandler fileHandler} to read or
* write the xml file.
*
* @param fileHandler used for file i/o.
* @param namespaceAware true if builder should be namespace aware.
*/
public DefaultXmlFileBuilder(FileHandler fileHandler, boolean namespaceAware)
{
xmlUtil = new XmlUtils(fileHandler, namespaceAware);
}
代码示例来源:origin: codehaus-cargo/cargo
/**
* creates the instance, which will use the specified @{link FileHandler fileHandler} to read or
* write the xml file.
*
* @param fileHandler used for file i/o.
* @param namespaceAware true if builder should be namespace aware.
*/
public DefaultXmlFileBuilder(FileHandler fileHandler, boolean namespaceAware)
{
xmlUtil = new XmlUtils(fileHandler, namespaceAware);
}
代码示例来源:origin: org.codehaus.cargo/cargo-core-api-util
/**
* creates the instance, which will use the specified @{link FileHandler fileHandler} to read or
* write the xml file.
*
* @param fileHandler used for file i/o.
*/
public DefaultXmlFileBuilder(FileHandler fileHandler)
{
xmlUtil = new XmlUtils(fileHandler);
}
代码示例来源:origin: codehaus-cargo/cargo
/**
* creates the instance, which will use the specified @{link FileHandler fileHandler} to read or
* write the xml file.
*
* @param fileHandler used for file i/o.
*/
public DefaultXmlFileBuilder(FileHandler fileHandler)
{
xmlUtil = new XmlUtils(fileHandler);
}
代码示例来源:origin: stackoverflow.com
XmlUtils xmlUtils = new XmlUtils();
代码示例来源:origin: org.codehaus.cargo/cargo-core-container-jrun
/**
* Sole constructor.
* @param jrunContainer {@link LocalContainer}
*/
public JRun4xFilterChain(LocalContainer jrunContainer)
{
this.jrunContainer = (InstalledLocalContainer) jrunContainer;
this.configuration = jrunContainer.getConfiguration();
this.xmlUtil = new XmlUtils(jrunContainer.getFileHandler());
this.init();
}
代码示例来源:origin: codehaus-cargo/cargo
/**
* Creates the various XML test elements. {@inheritDoc}
* @throws Exception If anything goes wrong.
*/
@Override
protected void setUp() throws Exception
{
super.setUp();
util = new XmlUtils(true);
DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = domFactory.newDocumentBuilder();
Document document = builder.newDocument();
this.testElement = document.createElement("test");
document.appendChild(this.testElement);
}
代码示例来源:origin: codehaus-cargo/cargo
/**
* Sole constructor.
* @param jrunContainer {@link LocalContainer}
*/
public JRun4xFilterChain(LocalContainer jrunContainer)
{
this.jrunContainer = (InstalledLocalContainer) jrunContainer;
this.configuration = jrunContainer.getConfiguration();
this.xmlUtil = new XmlUtils(jrunContainer.getFileHandler());
this.init();
}
代码示例来源:origin: org.codehaus.cargo/cargo-core-container-weblogic
/**
* {@inheritDoc}
*
* @param container container to configure
*/
public WebLogic9x10x103x12xConfigXmlInstalledLocalDeployer(InstalledLocalContainer container)
{
super(container);
xmlTool = new XmlUtils();
if (container instanceof WebLogic12xInstalledLocalContainer
|| container instanceof WebLogic121xInstalledLocalContainer)
{
namespace = "http://xmlns.oracle.com/weblogic/domain";
}
else
{
namespace = "http://www.bea.com/ns/weblogic/920/domain";
}
xmlTool.getNamespaces().put("weblogic", namespace);
// using the same filehandler as the container will help pass unit tests
FileHandler handler = container.getFileHandler();
xmlTool.setFileHandler(handler);
}
代码示例来源:origin: codehaus-cargo/cargo
/**
* {@inheritDoc}
*
* @param container container to configure
*/
public WebLogic9x10x103x12xConfigXmlInstalledLocalDeployer(InstalledLocalContainer container)
{
super(container);
xmlTool = new XmlUtils();
if (container instanceof WebLogic12xInstalledLocalContainer
|| container instanceof WebLogic121xInstalledLocalContainer)
{
namespace = "http://xmlns.oracle.com/weblogic/domain";
}
else
{
namespace = "http://www.bea.com/ns/weblogic/920/domain";
}
xmlTool.getNamespaces().put("weblogic", namespace);
// using the same filehandler as the container will help pass unit tests
FileHandler handler = container.getFileHandler();
xmlTool.setFileHandler(handler);
}
代码示例来源:origin: org.codehaus.cargo/cargo-core-api-util
throws CargoException
XmlUtils domUtils = new XmlUtils(this);
Document doc = domUtils.loadXmlFromFile(file);
代码示例来源:origin: codehaus-cargo/cargo
/**
* write the domain's config.xml to disk.
*
* @param configXml document to write to disk
*/
public void writeConfigXml(Document configXml)
{
XmlUtils xmlUtil = new XmlUtils(getFileHandler());
xmlUtil.saveXml(configXml, getFileHandler().append(getDomainHome(), "config.xml"));
}
代码示例来源:origin: org.codehaus.cargo/cargo-core-container-weblogic
/**
* write the domain's config.xml to disk.
*
* @param configXml document to write to disk
*/
public void writeConfigXml(Document configXml)
{
XmlUtils xmlUtil = new XmlUtils(getFileHandler());
xmlUtil.saveXml(configXml, getFileHandler().append(getDomainHome(), "config.xml"));
}
代码示例来源:origin: org.codehaus.cargo/cargo-core-container-weblogic
/**
* {@inheritDoc}
* @see org.codehaus.cargo.container.spi.configuration.AbstractStandaloneLocalConfiguration#AbstractStandaloneLocalConfiguration(String)
*/
public WebLogic9xStandaloneLocalConfiguration(String dir)
{
super(dir);
setProperty(WebLogicPropertySet.ADMIN_USER, "weblogic");
setProperty(WebLogicPropertySet.ADMIN_PWD, "weblogic");
setProperty(WebLogicPropertySet.SERVER, "server");
setProperty(WebLogicPropertySet.CONFIGURATION_VERSION, "9.2.3.0");
setProperty(WebLogicPropertySet.DOMAIN_VERSION, "9.2.3.0");
setProperty(ServletPropertySet.PORT, "7001");
setProperty(GeneralPropertySet.HOSTNAME, "localhost");
namespaces = new HashMap<String, String>();
namespaces.put("weblogic", "http://www.bea.com/ns/weblogic/920/domain");
namespaces.put("jdbc", "http://www.bea.com/ns/weblogic/90");
xmlTool = new XmlUtils();
xmlTool.setNamespaces(namespaces);
xmlTool.setFileHandler(getFileHandler());
}
代码示例来源:origin: codehaus-cargo/cargo
/**
* {@inheritDoc}
* @see org.codehaus.cargo.container.spi.configuration.AbstractStandaloneLocalConfiguration#AbstractStandaloneLocalConfiguration(String)
*/
public WebLogic9xStandaloneLocalConfiguration(String dir)
{
super(dir);
setProperty(WebLogicPropertySet.ADMIN_USER, "weblogic");
setProperty(WebLogicPropertySet.ADMIN_PWD, "weblogic");
setProperty(WebLogicPropertySet.SERVER, "server");
setProperty(WebLogicPropertySet.CONFIGURATION_VERSION, "9.2.3.0");
setProperty(WebLogicPropertySet.DOMAIN_VERSION, "9.2.3.0");
setProperty(ServletPropertySet.PORT, "7001");
setProperty(GeneralPropertySet.HOSTNAME, "localhost");
namespaces = new HashMap<String, String>();
namespaces.put("weblogic", "http://www.bea.com/ns/weblogic/920/domain");
namespaces.put("jdbc", "http://www.bea.com/ns/weblogic/90");
xmlTool = new XmlUtils();
xmlTool.setNamespaces(namespaces);
xmlTool.setFileHandler(getFileHandler());
}
代码示例来源:origin: codehaus-cargo/cargo
/**
* Creates the various XML test elements. {@inheritDoc}
* @throws Exception If anything goes wrong.
*/
@Override
public void setUp() throws Exception
{
this.fsManager = new StandardFileSystemManager();
((StandardFileSystemManager) this.fsManager).init();
this.fileHandler = new VFSFileHandler(this.fsManager);
util = new XmlUtils(fileHandler);
manager = new DefaultXmlFileBuilder(fileHandler);
namespaces = new HashMap<String, String>();
namespaces.put("weblogic", "http://www.bea.com/ns/weblogic/920/domain");
NamespaceContext ctx = new SimpleNamespaceContext(namespaces);
XMLUnit.setXpathNamespaceContext(ctx);
DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
builder = domFactory.newDocumentBuilder();
}
代码示例来源:origin: codehaus-cargo/cargo
/**
* {@inheritDoc} undeploys files by removing their configuration to the config.xml file of the
* WebLogic server.
*/
@Override
public void undeploy(Deployable deployable)
{
XmlUtils xmlUtil = new XmlUtils(getFileHandler());
Document configXml =
xmlUtil.loadXmlFromFile(getFileHandler().append(getDomainHome(), "config.xml"));
List<Element> results = xmlUtil.selectElementsMatchingXPath("//Application[@Path='"
+ getFileHandler().getParent(getAbsolutePath(deployable)) + "']",
configXml.getDocumentElement());
for (Element element : results)
{
configXml.removeChild(element);
}
this.writeConfigXml(configXml);
}
代码示例来源:origin: org.codehaus.cargo/cargo-core-container-weblogic
/**
* {@inheritDoc} undeploys files by removing their configuration to the config.xml file of the
* WebLogic server.
*/
@Override
public void undeploy(Deployable deployable)
{
XmlUtils xmlUtil = new XmlUtils(getFileHandler());
Document configXml =
xmlUtil.loadXmlFromFile(getFileHandler().append(getDomainHome(), "config.xml"));
List<Element> results = xmlUtil.selectElementsMatchingXPath("//Application[@Path='"
+ getFileHandler().getParent(getAbsolutePath(deployable)) + "']",
configXml.getDocumentElement());
for (Element element : results)
{
configXml.removeChild(element);
}
this.writeConfigXml(configXml);
}
代码示例来源:origin: org.codehaus.cargo/cargo-core-container-weblogic
/**
* {@inheritDoc} deploys files by adding their configuration to the config.xml file of the
* WebLogic server.
*/
@Override
public void deploy(Deployable deployable)
{
XmlUtils xmlUtil = new XmlUtils(getFileHandler());
Document configXml =
xmlUtil.loadXmlFromFile(getFileHandler().append(getDomainHome(), "config.xml"));
Element domain = xmlUtil.selectElementMatchingXPath("//Domain",
configXml.getDocumentElement());
if (deployable.getType() == DeployableType.WAR)
{
addWarToDomain((WAR) deployable, domain);
}
else if (deployable.getType() == DeployableType.EAR)
{
addEarToDomain((EAR) deployable, domain);
}
else
{
throw new ContainerException("Not supported");
}
this.writeConfigXml(configXml);
}
代码示例来源:origin: codehaus-cargo/cargo
/**
* {@inheritDoc} deploys files by adding their configuration to the config.xml file of the
* WebLogic server.
*/
@Override
public void deploy(Deployable deployable)
{
XmlUtils xmlUtil = new XmlUtils(getFileHandler());
Document configXml =
xmlUtil.loadXmlFromFile(getFileHandler().append(getDomainHome(), "config.xml"));
Element domain = xmlUtil.selectElementMatchingXPath("//Domain",
configXml.getDocumentElement());
if (deployable.getType() == DeployableType.WAR)
{
addWarToDomain((WAR) deployable, domain);
}
else if (deployable.getType() == DeployableType.EAR)
{
addEarToDomain((EAR) deployable, domain);
}
else
{
throw new ContainerException("Not supported");
}
this.writeConfigXml(configXml);
}
无法弄清楚为什么 XMLUtils.outputDOM 没有输出任何内容 import org.apache.xml.security.utils.XMLUtils; DocumentBuilderF
我正在使用 XmlUtils 解析并提取列表中 id 属性的值,但它返回空。 我哪里出错了?请推荐 XML:
本文整理了Java中org.metawidget.util.XmlUtils.getSiblingWithAttribute()方法的一些代码示例,展示了XmlUtils.getSiblingWith
本文整理了Java中org.metawidget.util.XmlUtils.inspectionResultToJsonSchema()方法的一些代码示例,展示了XmlUtils.inspectio
本文整理了Java中org.metawidget.util.XmlUtils.getChildWithAttributeValue()方法的一些代码示例,展示了XmlUtils.getChildWit
本文整理了Java中org.metawidget.util.XmlUtils.newDocument()方法的一些代码示例,展示了XmlUtils.newDocument()的具体用法。这些代码示例主
本文整理了Java中org.metawidget.util.XmlUtils.setMapAsAttributes()方法的一些代码示例,展示了XmlUtils.setMapAsAttributes(
本文整理了Java中org.metawidget.util.XmlUtils.getFirstChildElement()方法的一些代码示例,展示了XmlUtils.getFirstChildElem
本文整理了Java中org.metawidget.util.XmlUtils.getNextSiblingElement()方法的一些代码示例,展示了XmlUtils.getNextSiblingEl
本文整理了Java中org.metawidget.util.XmlUtils.arrayToJsonSchema()方法的一些代码示例,展示了XmlUtils.arrayToJsonSchema()的
本文整理了Java中org.metawidget.util.XmlUtils.escapeForXml()方法的一些代码示例,展示了XmlUtils.escapeForXml()的具体用法。这些代码示
本文整理了Java中org.metawidget.util.XmlUtils.getLocalName()方法的一些代码示例,展示了XmlUtils.getLocalName()的具体用法。这些代码示
本文整理了Java中org.metawidget.util.XmlUtils.getChildWithAttribute()方法的一些代码示例,展示了XmlUtils.getChildWithAttr
本文整理了Java中org.metawidget.util.XmlUtils.importElement()方法的一些代码示例,展示了XmlUtils.importElement()的具体用法。这些代
本文整理了Java中org.metawidget.util.XmlUtils.combineElements()方法的一些代码示例,展示了XmlUtils.combineElements()的具体用法
本文整理了Java中org.metawidget.util.XmlUtils.getAttributesAsMap()方法的一些代码示例,展示了XmlUtils.getAttributesAsMap(
本文整理了Java中org.metawidget.util.XmlUtils.documentFromString()方法的一些代码示例,展示了XmlUtils.documentFromString(
本文整理了Java中org.metawidget.util.XmlUtils.documentToString()方法的一些代码示例,展示了XmlUtils.documentToString()的具体
本文整理了Java中org.intermine.util.XmlUtil.getFragmentFromURI()方法的一些代码示例,展示了XmlUtil.getFragmentFromURI()的具
本文整理了Java中org.intermine.util.XmlUtil.writeIndentation()方法的一些代码示例,展示了XmlUtil.writeIndentation()的具体用法。
我是一名优秀的程序员,十分优秀!