gpt4 book ai didi

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

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

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

XMLObjectProviderRegistry.getMarshallerFactory介绍

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

代码示例

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

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

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

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

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

/**
 * Obtain an XMLObject marshaller for the given QName.
 * 
 * @param typeOrName the element name or type
 * @return an XMLObject marshaller, or null if no provider registered
 */
public static Marshaller getMarshaller(QName typeOrName) {
  return getProviderRegistry().getMarshallerFactory().getMarshaller(typeOrName);
}

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

/**
 * Obtain an XMLObject marshaller for the given QName.
 * 
 * @param typeOrName the element name or type
 * @return an XMLObject marshaller, or null if no provider registered
 */
public static Marshaller getMarshaller(QName typeOrName) {
  return getProviderRegistry().getMarshallerFactory().getMarshaller(typeOrName);
}

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

/**
 * Obtain an XMLObject marshaller for the given XMLObject.
 * 
 * @param xmlObject the XMLObject to be marshalled
 * @return an XMLObject marshaller, or null if no provider registered
 */
public static Marshaller getMarshaller(XMLObject xmlObject) {
  return getProviderRegistry().getMarshallerFactory().getMarshaller(xmlObject);
}

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

/**
 * Obtain an XMLObject marshaller for the given XMLObject.
 * 
 * @param xmlObject the XMLObject to be marshalled
 * @return an XMLObject marshaller, or null if no provider registered
 */
public static Marshaller getMarshaller(XMLObject xmlObject) {
  return getProviderRegistry().getMarshallerFactory().getMarshaller(xmlObject);
}

代码示例来源: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

Assert.notNull(this.builderFactory, "parserPool cannot be null");
this.marshallerFactory = registry.getMarshallerFactory();
Assert.notNull(this.marshallerFactory, "marshallerFactory 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);
}

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