- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.mule.util.xmlsecurity.XMLSecureFactories.createDefault()
方法的一些代码示例,展示了XMLSecureFactories.createDefault()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLSecureFactories.createDefault()
方法的具体详情如下:
包路径:org.mule.util.xmlsecurity.XMLSecureFactories
类名称:XMLSecureFactories
方法名:createDefault
暂无
代码示例来源:origin: org.mule.modules/mule-module-json
@Override
public TransformerFactory getTransformerFactory()
{
return XMLSecureFactories.createDefault().getTransformerFactory();
}
}
代码示例来源:origin: org.mule.modules/mule-module-xml
private static org.w3c.dom.Document parseXML(InputSource source) throws Exception
{
DocumentBuilderFactory factory = XMLSecureFactories.createDefault().getDocumentBuilderFactory();
return factory.newDocumentBuilder().parse(source);
}
代码示例来源:origin: org.mule.modules/mule-module-json
protected AbstractToFromXmlTransformer()
{
transformerFactory = XMLSecureFactories.createDefault().getTransformerFactory();
}
代码示例来源:origin: org.mule.modules/mule-module-xml
/**
* @return a new XSLT transformer
* @throws TransformerConfigurationException if no TransformerFactory can be located in the
* runtime environment.
*/
public static Transformer getTransformer() throws TransformerConfigurationException
{
return XMLSecureFactories.createDefault().getTransformerFactory().newTransformer();
}
代码示例来源:origin: org.mule.modules/mule-module-xml
private static String getOuterXml(XMLStreamReader xmlr) throws TransformerFactoryConfigurationError, TransformerException
{
Transformer transformer = XMLSecureFactories.createDefault().getTransformerFactory().newTransformer();
StringWriter stringWriter = new StringWriter();
transformer.transform(new StaxSource(xmlr), new StreamResult(stringWriter));
return stringWriter.toString();
}
代码示例来源:origin: org.mule.modules/mule-module-ws
/**
* Converts a schema into a String.
* @throws TransformerException If unable to transform the schema.
*/
public static String schemaToString(Schema schema) throws TransformerException
{
StringWriter writer = new StringWriter();
Transformer transformer = XMLSecureFactories.createDefault().getTransformerFactory().newTransformer();
transformer.transform(new DOMSource(schema.getElement()), new StreamResult(writer));
return writer.toString();
}
代码示例来源:origin: org.mule.modules/mule-module-spring-config
protected XMLReader createSaxAnnotator(Document doc) throws ParserConfigurationException, SAXException
{
SAXParserFactory saxParserFactory = XMLSecureFactories.createDefault().getSAXParserFactory();
SAXParser saxParser = saxParserFactory.newSAXParser();
XMLReader documentReader = saxParser.getXMLReader();
documentReader.setContentHandler(new XmlMetadataAnnotator(doc, metadataFactory));
return documentReader;
}
代码示例来源:origin: org.mule.modules/mule-module-xml
public static Node toDOMNode(Object src, MuleEvent event) throws Exception
{
DocumentBuilderFactory builderFactory = XMLSecureFactories.createDefault().getDocumentBuilderFactory();
builderFactory.setNamespaceAware(true);
return toDOMNode(src, event, builderFactory);
}
代码示例来源:origin: org.mule.modules/mule-module-xml
public static TransformerFactory createSaxonTransformerFactory() {
TransformerFactory factory = (TransformerFactory) createInstance(SAXON_TRANSFORMER_FACTORY);
XMLSecureFactories.createDefault().configureTransformerFactory(factory);
return factory;
}
代码示例来源:origin: org.mule.modules/mule-module-jersey
@Override
@PerThread
public DocumentBuilderFactory provide()
{
DocumentBuilderFactory f = DocumentBuilderFactory.newInstance();
if (!isXmlSecurityDisabled()) {
f = XMLSecureFactories.createDefault().getDocumentBuilderFactory();
}
f.setNamespaceAware(true);
return f;
}
代码示例来源:origin: org.mule.modules/mule-module-xml
public static XMLInputFactory createWstxXmlInputFactory() {
XMLInputFactory factory = (XMLInputFactory) createInstance(WSTX_INPUT_FACTORY);
XMLSecureFactories.createDefault().configureXMLInputFactory(factory);
return factory;
}
代码示例来源:origin: org.mule.modules/mule-module-jersey
@Override
@PerThread
public SAXParserFactory provide() {
SAXParserFactory factory = SAXParserFactory.newInstance();
if (!isXmlSecurityDisabled()) {
factory = XMLSecureFactories.createDefault().getSAXParserFactory();
}
factory.setNamespaceAware(true);
return factory;
}
代码示例来源:origin: org.mule.modules/mule-module-spring-config
/**
* Convert w3c element to dom4j element
*
* @throws ParserConfigurationException
*/
public org.dom4j.Element convert(org.w3c.dom.Element element) throws ParserConfigurationException
{
DocumentBuilderFactory factory = XMLSecureFactories.createDefault().getDocumentBuilderFactory();
DocumentBuilder builder = factory.newDocumentBuilder();
org.w3c.dom.Document doc1 = builder.newDocument();
org.w3c.dom.Element importedElement = (org.w3c.dom.Element) doc1.importNode(element, Boolean.TRUE);
doc1.appendChild(importedElement);
// Convert w3c document to dom4j document
DOMReader reader = new DOMReader();
org.dom4j.Document doc2 = reader.read(doc1);
return doc2.getRootElement();
}
代码示例来源:origin: org.mule.modules/mule-module-xml
public XPathNodeExpressionEvaluator()
{
try
{
builder = XMLSecureFactories.createDefault().getDocumentBuilderFactory().newDocumentBuilder();
}
catch (ParserConfigurationException e)
{
throw new ExpressionRuntimeException(XmlMessages.failedToCreateDocumentBuilder(), e);
}
}
代码示例来源:origin: org.mule.modules/mule-module-xml
public void initialise() throws InitialisationException
{
if (getDocumentBuilderFactory() == null)
{
DocumentBuilderFactory builderFactory = XMLSecureFactories.createDefault().getDocumentBuilderFactory();
builderFactory.setNamespaceAware(true);
setDocumentBuilderFactory(builderFactory);
}
}
代码示例来源:origin: org.mule.modules/mule-module-jersey
@Override
@PerThread
public XMLInputFactory provide() {
XMLInputFactory factory = XMLInputFactory.newInstance();
if (!isXmlSecurityDisabled()) {
factory = XMLSecureFactories.createDefault().getXMLInputFactory();
}
return factory;
}
代码示例来源:origin: org.mule.modules/mule-module-xml
/**
* Create a validator.
*
* @return The validator.
*/
public Validator createValidator() throws SAXException
{
Validator validator = getSchemaObject().newValidator();
XMLSecureFactories.createDefault().configureValidator(validator);
if (this.validatorFeatures != null)
{
for (Map.Entry<String, Boolean> feature : this.validatorFeatures.entrySet())
{
validator.setFeature(feature.getKey(), feature.getValue());
}
}
if (this.validatorProperties != null)
{
for (Map.Entry<String, Object> validatorProperty : this.validatorProperties.entrySet())
{
validator.setProperty(validatorProperty.getKey(), validatorProperty.getValue());
}
}
return validator;
}
代码示例来源:origin: org.mule.modules/mule-module-xml
StreamResult result = new StreamResult(writer);
Transformer idTransformer = XMLSecureFactories.createDefault().getTransformerFactory().newTransformer();
if (outputEncoding != null)
代码示例来源:origin: org.mule.modules/mule-module-spring-config
DocumentBuilderFactory factory = XMLSecureFactories.createDefault().getDocumentBuilderFactory();
Document doc = factory.newDocumentBuilder().newDocument();
doc.appendChild(doc.importNode(element, true));
代码示例来源:origin: org.mule.modules/mule-module-xml
SchemaFactory schemaFactory = XMLSecureFactories.createDefault().getSchemaFactory(getSchemaLanguage());
本文整理了Java中org.mule.util.xmlsecurity.XMLSecureFactories.getTransformerFactory()方法的一些代码示例,展示了XMLSecure
本文整理了Java中org.mule.util.xmlsecurity.XMLSecureFactories.createDefault()方法的一些代码示例,展示了XMLSecureFactorie
本文整理了Java中org.mule.util.xmlsecurity.XMLSecureFactories.getSAXParserFactory()方法的一些代码示例,展示了XMLSecureFa
本文整理了Java中org.mule.util.xmlsecurity.XMLSecureFactories.getDocumentBuilderFactory()方法的一些代码示例,展示了XMLSe
本文整理了Java中org.mule.util.xmlsecurity.XMLSecureFactories.getXMLInputFactory()方法的一些代码示例,展示了XMLSecureFac
本文整理了Java中org.mule.runtime.core.api.util.xmlsecurity.XMLSecureFactories.createDefault()方法的一些代码示例,展示了
本文整理了Java中org.mule.runtime.core.api.util.xmlsecurity.XMLSecureFactories.getSAXParserFactory()方法的一些代码
本文整理了Java中org.mule.runtime.core.api.util.xmlsecurity.XMLSecureFactories.getXMLInputFactory()方法的一些代码示
本文整理了Java中org.mule.runtime.core.api.util.xmlsecurity.XMLSecureFactories.getDocumentBuilderFactory()方
本文整理了Java中org.mule.runtime.core.api.util.xmlsecurity.XMLSecureFactories.getTransformerFactory()方法的一些
我是一名优秀的程序员,十分优秀!