gpt4 book ai didi

org.opensaml.core.xml.config.XMLObjectProviderRegistry.getBuilderFactory()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 06:37:05 30 4
gpt4 key购买 nike

本文整理了Java中org.opensaml.core.xml.config.XMLObjectProviderRegistry.getBuilderFactory()方法的一些代码示例,展示了XMLObjectProviderRegistry.getBuilderFactory()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLObjectProviderRegistry.getBuilderFactory()方法的具体详情如下:
包路径:org.opensaml.core.xml.config.XMLObjectProviderRegistry
类名称:XMLObjectProviderRegistry
方法名:getBuilderFactory

XMLObjectProviderRegistry.getBuilderFactory介绍

[英]Gets the XMLObject builder factory that has been configured with information from loaded configuration files.
[中]获取已使用加载的配置文件中的信息配置的XMLObject builder工厂。

代码示例

代码示例来源:origin: org.opensaml/opensaml-core

/**
 * Gets the XMLObject builder factory that has been configured with information from loaded configuration files.
 * 
 * @return the XMLObject builder factory
 */
public static XMLObjectBuilderFactory getBuilderFactory() {
  return ConfigurationService.get(XMLObjectProviderRegistry.class).getBuilderFactory();
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.opensaml

/**
 * Gets the XMLObject builder factory that has been configured with information from loaded configuration files.
 * 
 * @return the XMLObject builder factory
 */
public static XMLObjectBuilderFactory getBuilderFactory() {
  return ConfigurationService.get(XMLObjectProviderRegistry.class).getBuilderFactory();
}

代码示例来源:origin: org.opensaml/opensaml-core

/**
 * Obtain an XMLObject builder for the given QName.
 * 
 * @param typeOrName the element name or type
 * @return an XMLObject builder, or null if no provider registered
 */
public static XMLObjectBuilder<?> getBuilder(QName typeOrName) {
  return getProviderRegistry().getBuilderFactory().getBuilder(typeOrName);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.opensaml

/**
 * Obtain an XMLObject builder for the given QName.
 * 
 * @param typeOrName the element name or type
 * @return an XMLObject builder, or null if no provider registered
 */
public static XMLObjectBuilder<?> getBuilder(QName typeOrName) {
  return getProviderRegistry().getBuilderFactory().getBuilder(typeOrName);
}

代码示例来源:origin: org.opensaml/opensaml-core

/**
 * Build an XMLObject based on the element name.
 * 
 * @param elementName the element name
 * @return an XMLObject
 * @throws XMLRuntimeException if the required builder can not be obtained
 */
public static XMLObject buildXMLObject(QName elementName) {
  XMLObjectBuilder<?> builder = getProviderRegistry().getBuilderFactory().getBuilderOrThrow(elementName);
  return builder.buildObject(elementName);
}

代码示例来源:origin: org.opensaml/opensaml-core

/**
 * Build an XMLObject based on the element nane and xsi:type.
 * 
 * @param elementName the element name
 * @param typeName the xsi:type
 * @return an XMLObject
 * @throws XMLRuntimeException if the required builder can not be obtained
 */
public static XMLObject buildXMLObject(QName elementName, QName typeName) {
  XMLObjectBuilder<?> builder = getProviderRegistry().getBuilderFactory().getBuilderOrThrow(elementName);
  return builder.buildObject(elementName, typeName);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.opensaml

/**
 * Build an XMLObject based on the element name.
 * 
 * @param elementName the element name
 * @return an XMLObject
 * @throws XMLRuntimeException if the required builder can not be obtained
 */
public static XMLObject buildXMLObject(QName elementName) {
  XMLObjectBuilder<?> builder = getProviderRegistry().getBuilderFactory().getBuilderOrThrow(elementName);
  return builder.buildObject(elementName);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.opensaml

/**
 * Build an XMLObject based on the element nane and xsi:type.
 * 
 * @param elementName the element name
 * @param typeName the xsi:type
 * @return an XMLObject
 * @throws XMLRuntimeException if the required builder can not be obtained
 */
public static XMLObject buildXMLObject(QName elementName, QName typeName) {
  XMLObjectBuilder<?> builder = getProviderRegistry().getBuilderFactory().getBuilderOrThrow(elementName);
  return builder.buildObject(elementName, typeName);
}

代码示例来源:origin: org.opensaml/opensaml-core

/**
 * Adds an object provider to this configuration.
 * 
 * @param providerName the name of the object provider, corresponding to the element name or type name that the
 *            builder, marshaller, and unmarshaller operate on
 * @param builder the builder for that given provider
 * @param marshaller the marshaller for the provider
 * @param unmarshaller the unmarshaller for the provider
 */
public static void registerObjectProvider(@Nonnull final QName providerName,
    @Nonnull final XMLObjectBuilder<?> builder, @Nonnull final Marshaller marshaller,
    @Nonnull final Unmarshaller unmarshaller) {
  XMLObjectProviderRegistry registry = ConfigurationService.get(XMLObjectProviderRegistry.class);
  
  registry.getBuilderFactory().registerBuilder(providerName, builder);
  registry.getMarshallerFactory().registerMarshaller(providerName, marshaller);
  registry.getUnmarshallerFactory().registerUnmarshaller(providerName, unmarshaller);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.opensaml

/**
 * Adds an object provider to this configuration.
 * 
 * @param providerName the name of the object provider, corresponding to the element name or type name that the
 *            builder, marshaller, and unmarshaller operate on
 * @param builder the builder for that given provider
 * @param marshaller the marshaller for the provider
 * @param unmarshaller the unmarshaller for the provider
 */
public static void registerObjectProvider(@Nonnull final QName providerName,
    @Nonnull final XMLObjectBuilder<?> builder, @Nonnull final Marshaller marshaller,
    @Nonnull final Unmarshaller unmarshaller) {
  XMLObjectProviderRegistry registry = ConfigurationService.get(XMLObjectProviderRegistry.class);
  
  registry.getBuilderFactory().registerBuilder(providerName, builder);
  registry.getMarshallerFactory().registerMarshaller(providerName, marshaller);
  registry.getUnmarshallerFactory().registerUnmarshaller(providerName, unmarshaller);
}

代码示例来源:origin: org.jasig.cas/cas-server-support-saml

this.builderFactory = registry.getBuilderFactory();
Assert.notNull(this.builderFactory, "parserPool cannot be null");

代码示例来源:origin: org.opensaml/opensaml-core

/**
 * Removes the builder, marshaller, and unmarshaller registered to the given key.
 * 
 * @param key the key of the builder, marshaller, and unmarshaller to be removed
 */
public static void deregisterObjectProvider(@Nonnull final QName key) {
  XMLObjectProviderRegistry registry = ConfigurationService.get(XMLObjectProviderRegistry.class);
  registry.getBuilderFactory().deregisterBuilder(key);
  registry.getMarshallerFactory().deregisterMarshaller(key);
  registry.getUnmarshallerFactory().deregisterUnmarshaller(key);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.opensaml

/**
 * Removes the builder, marshaller, and unmarshaller registered to the given key.
 * 
 * @param key the key of the builder, marshaller, and unmarshaller to be removed
 */
public static void deregisterObjectProvider(@Nonnull final QName key) {
  XMLObjectProviderRegistry registry = ConfigurationService.get(XMLObjectProviderRegistry.class);
  registry.getBuilderFactory().deregisterBuilder(key);
  registry.getMarshallerFactory().deregisterMarshaller(key);
  registry.getUnmarshallerFactory().deregisterUnmarshaller(key);
}

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com