org.apache.axis.MessageContext.getTypeMappingRegistry()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(6.7k)|赞(0)|评价(0)|浏览(91)

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

MessageContext.getTypeMappingRegistry介绍

[英]Get the currently in-scope type mapping registry. By default, will return a reference to the AxisEngine's TMR until someone sets our local one (usually as a result of setting the serviceHandler).
[中]获取当前范围内的类型映射注册表。默认情况下,将返回对AxisEngine的TMR的引用,直到有人设置我们的本地TMR(通常是设置serviceHandler的结果)。

代码示例

代码示例来源:origin: axis/axis

/**
 * Get the TypeMappingRegistry we're using.
 * @return TypeMapping or null
 */
public TypeMappingRegistry getTypeMappingRegistry() {
  if (msgContext == null)
    return null;
  return msgContext.getTypeMappingRegistry();
}

代码示例来源:origin: org.apache.axis/axis

/**
 * Get the TypeMappingRegistry we're using.
 * @return TypeMapping or null
 */
public TypeMappingRegistry getTypeMappingRegistry() {
  return msgContext.getTypeMappingRegistry();
}

代码示例来源:origin: axis/axis

/**
 * Get the TypeMappingRegistry we're using.
 * @return TypeMapping or null
 */
public TypeMappingRegistry getTypeMappingRegistry() {
  return msgContext.getTypeMappingRegistry();
}

代码示例来源:origin: org.apache.axis/axis

/**
 * Get the TypeMappingRegistry we're using.
 * @return TypeMapping or null
 */
public TypeMappingRegistry getTypeMappingRegistry() {
  if (msgContext == null)
    return null;
  return msgContext.getTypeMappingRegistry();
}

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

/**
 * Get the TypeMappingRegistry we're using.
 * @return TypeMapping or null
 */
public TypeMappingRegistry getTypeMappingRegistry() {
  return msgContext.getTypeMappingRegistry();
}

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

/**
 * Get the TypeMappingRegistry we're using.
 * @return TypeMapping or null
 */
public TypeMappingRegistry getTypeMappingRegistry() {
  if (msgContext == null)
    return null;
  return msgContext.getTypeMappingRegistry();
}

代码示例来源:origin: axis/axis

/**
 * Return the type mapping currently in scope for our encoding style.
 *
 * @return the type mapping
 */
public TypeMapping getTypeMapping()
{
  return (TypeMapping)getTypeMappingRegistry().
      getTypeMapping(encodingStyle);
}

代码示例来源:origin: org.apache.axis/axis

/**
 * Return the type mapping currently in scope for our encoding style.
 *
 * @return the type mapping
 */
public TypeMapping getTypeMapping()
{
  return (TypeMapping)getTypeMappingRegistry().
      getTypeMapping(encodingStyle);
}

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

/**
 * Return the type mapping currently in scope for our encoding style.
 *
 * @return the type mapping
 */
public TypeMapping getTypeMapping()
{
  return (TypeMapping)getTypeMappingRegistry().
      getTypeMapping(encodingStyle);
}

代码示例来源:origin: axis/axis

public TypeMapping getTypeMapping()
{
  // Get the TypeMappingRegistry
  TypeMappingRegistry tmr = msgContext.getTypeMappingRegistry();
  // If a TypeMapping is not available, add one.
  return tmr.getOrMakeTypeMapping(getEncodingStyle());
}

代码示例来源:origin: org.apache.axis/axis

/**
 * Get the TypeMapping for this DeserializationContext
 */
public TypeMapping getTypeMapping()
{
  if (msgContext == null || msgContext.getTypeMappingRegistry() == null) {
    return (TypeMapping) new org.apache.axis.encoding.TypeMappingRegistryImpl().getTypeMapping(
        null);
  }
  TypeMappingRegistry tmr = msgContext.getTypeMappingRegistry();
  return (TypeMapping) tmr.getTypeMapping(getEncodingStyle());
}

代码示例来源:origin: org.apache.axis/axis

public TypeMapping getTypeMapping()
{
  // Get the TypeMappingRegistry
  TypeMappingRegistry tmr = msgContext.getTypeMappingRegistry();
  // If a TypeMapping is not available, add one.
  return tmr.getOrMakeTypeMapping(getEncodingStyle());
}

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

public TypeMapping getTypeMapping()
{
  // Get the TypeMappingRegistry
  TypeMappingRegistry tmr = msgContext.getTypeMappingRegistry();
  // If a TypeMapping is not available, add one.
  return tmr.getOrMakeTypeMapping(getEncodingStyle());
}

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

/**
 * Get the TypeMapping for this DeserializationContext
 */
public TypeMapping getTypeMapping()
{
  if (msgContext == null || msgContext.getTypeMappingRegistry() == null) {
    return (TypeMapping) new org.apache.axis.encoding.TypeMappingRegistryImpl().getTypeMapping(
        null);
  }
  TypeMappingRegistry tmr = msgContext.getTypeMappingRegistry();
  return (TypeMapping) tmr.getTypeMapping(getEncodingStyle());
}

代码示例来源:origin: axis/axis

/**
 * Get the TypeMapping for this DeserializationContext
 */
public TypeMapping getTypeMapping()
{
  if (msgContext == null || msgContext.getTypeMappingRegistry() == null) {
    return (TypeMapping) new org.apache.axis.encoding.TypeMappingRegistryImpl().getTypeMapping(
        null);
  }
  TypeMappingRegistry tmr = msgContext.getTypeMappingRegistry();
  return (TypeMapping) tmr.getTypeMapping(getEncodingStyle());
}

代码示例来源:origin: axis/axis

/**
 * Get the TypeMapping we're using.
 * @return TypeMapping or null
 */
public TypeMapping getTypeMapping()
{
  // Always allow the default mappings
  if (msgContext == null)
    return DefaultTypeMappingImpl.getSingletonDelegate();
  String encodingStyle = msgContext.getEncodingStyle();
  if (encodingStyle == null)
    encodingStyle = soapConstants.getEncodingURI();
  return (TypeMapping) msgContext.
          getTypeMappingRegistry().getTypeMapping(encodingStyle);
}

代码示例来源:origin: org.apache.axis/axis

/**
 * Get the TypeMapping we're using.
 * @return TypeMapping or null
 */
public TypeMapping getTypeMapping()
{
  // Always allow the default mappings
  if (msgContext == null)
    return DefaultTypeMappingImpl.getSingletonDelegate();
  String encodingStyle = msgContext.getEncodingStyle();
  if (encodingStyle == null)
    encodingStyle = soapConstants.getEncodingURI();
  return (TypeMapping) msgContext.
          getTypeMappingRegistry().getTypeMapping(encodingStyle);
}

代码示例来源:origin: axis/axis

public static TypeMappingDelegate createWithDelegate() {
  TypeMappingDelegate ret = new TypeMappingDelegate(new DefaultSOAPEncodingTypeMappingImpl());
  MessageContext mc = MessageContext.getCurrentContext();
  TypeMappingDelegate tm = null;
  if (mc != null) {
    tm = (TypeMappingDelegate)mc.getTypeMappingRegistry().getDefaultTypeMapping();
  } else {
    tm = DefaultTypeMappingImpl.getSingletonDelegate();
  }
  ret.setNext(tm);
  return ret;
}

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

public static TypeMappingDelegate createWithDelegate() {
  TypeMappingDelegate ret = new TypeMappingDelegate(new DefaultSOAPEncodingTypeMappingImpl());
  MessageContext mc = MessageContext.getCurrentContext();
  TypeMappingDelegate tm = null;
  if (mc != null) {
    tm = (TypeMappingDelegate)mc.getTypeMappingRegistry().getDefaultTypeMapping();
  } else {
    tm = DefaultTypeMappingImpl.getSingletonDelegate();
  }
  ret.setNext(tm);
  return ret;
}

代码示例来源:origin: org.apache.axis/axis

public static TypeMappingDelegate createWithDelegate() {
  TypeMappingDelegate ret = new TypeMappingDelegate(new DefaultSOAPEncodingTypeMappingImpl());
  MessageContext mc = MessageContext.getCurrentContext();
  TypeMappingDelegate tm = null;
  if (mc != null) {
    tm = (TypeMappingDelegate)mc.getTypeMappingRegistry().getDefaultTypeMapping();
  } else {
    tm = DefaultTypeMappingImpl.getSingletonDelegate();
  }
  ret.setNext(tm);
  return ret;
}

相关文章

微信公众号

最新文章

更多

MessageContext类方法