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

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

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

MessageContext.containsProperty介绍

[英]Returns true if the MessageContext contains a property with the specified name.
[中]如果MessageContext包含具有指定名称的属性,则返回true。

代码示例

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

/** Return a map of properties that makeup the application-specific
    for the JMS Messages.
   */
  protected HashMap createApplicationProperties(MessageContext context) {
    HashMap props = null;
    if (context.containsProperty(
      JMSConstants.JMS_APPLICATION_MSG_PROPS)) {
      props = new HashMap();
      props.putAll((Map)context.getProperty(
        JMSConstants.JMS_APPLICATION_MSG_PROPS));
    }
    return props;
  }
}

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

/** Return a map of properties that makeup the application-specific
    for the JMS Messages.
   */
  protected HashMap createApplicationProperties(MessageContext context) {
    HashMap props = null;
    if (context.containsProperty(
      JMSConstants.JMS_APPLICATION_MSG_PROPS)) {
      props = new HashMap();
      props.putAll((Map)context.getProperty(
        JMSConstants.JMS_APPLICATION_MSG_PROPS));
    }
    return props;
  }
}

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

/** Return a map of properties that makeup the application-specific
    for the JMS Messages.
   */
  protected HashMap createApplicationProperties(MessageContext context) {
    HashMap props = null;
    if (context.containsProperty(
      JMSConstants.JMS_APPLICATION_MSG_PROPS)) {
      props = new HashMap();
      props.putAll((Map)context.getProperty(
        JMSConstants.JMS_APPLICATION_MSG_PROPS));
    }
    return props;
  }
}

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

private HashMap createSendProperties(MessageContext context)
{
  //I'm not sure why this helper method is private, but 
  //we need to delegate to factory method that can build the
  //application-specific map of properties so make a change to
  //delegate here. 
  HashMap props = createApplicationProperties(context);
  if(context.containsProperty(JMSConstants.PRIORITY))
    props.put(JMSConstants.PRIORITY,
    context.getProperty(JMSConstants.PRIORITY));
  if(context.containsProperty(JMSConstants.DELIVERY_MODE))
    props.put(JMSConstants.DELIVERY_MODE,
    context.getProperty(JMSConstants.DELIVERY_MODE));
  if(context.containsProperty(JMSConstants.TIME_TO_LIVE))
    props.put(JMSConstants.TIME_TO_LIVE,
    context.getProperty(JMSConstants.TIME_TO_LIVE));
  if(context.containsProperty(JMSConstants.JMS_CORRELATION_ID))
    props.put(JMSConstants.JMS_CORRELATION_ID,
    context.getProperty(JMSConstants.JMS_CORRELATION_ID));
  return props;
}

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

private HashMap createSendProperties(MessageContext context)
{
  //I'm not sure why this helper method is private, but 
  //we need to delegate to factory method that can build the
  //application-specific map of properties so make a change to
  //delegate here. 
  HashMap props = createApplicationProperties(context);
  if(context.containsProperty(JMSConstants.PRIORITY))
    props.put(JMSConstants.PRIORITY,
    context.getProperty(JMSConstants.PRIORITY));
  if(context.containsProperty(JMSConstants.DELIVERY_MODE))
    props.put(JMSConstants.DELIVERY_MODE,
    context.getProperty(JMSConstants.DELIVERY_MODE));
  if(context.containsProperty(JMSConstants.TIME_TO_LIVE))
    props.put(JMSConstants.TIME_TO_LIVE,
    context.getProperty(JMSConstants.TIME_TO_LIVE));
  if(context.containsProperty(JMSConstants.JMS_CORRELATION_ID))
    props.put(JMSConstants.JMS_CORRELATION_ID,
    context.getProperty(JMSConstants.JMS_CORRELATION_ID));
  return props;
}

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

private HashMap createSendProperties(MessageContext context)
{
  //I'm not sure why this helper method is private, but 
  //we need to delegate to factory method that can build the
  //application-specific map of properties so make a change to
  //delegate here. 
  HashMap props = createApplicationProperties(context);
  if(context.containsProperty(JMSConstants.PRIORITY))
    props.put(JMSConstants.PRIORITY,
    context.getProperty(JMSConstants.PRIORITY));
  if(context.containsProperty(JMSConstants.DELIVERY_MODE))
    props.put(JMSConstants.DELIVERY_MODE,
    context.getProperty(JMSConstants.DELIVERY_MODE));
  if(context.containsProperty(JMSConstants.TIME_TO_LIVE))
    props.put(JMSConstants.TIME_TO_LIVE,
    context.getProperty(JMSConstants.TIME_TO_LIVE));
  if(context.containsProperty(JMSConstants.JMS_CORRELATION_ID))
    props.put(JMSConstants.JMS_CORRELATION_ID,
    context.getProperty(JMSConstants.JMS_CORRELATION_ID));
  return props;
}

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

if(msgContext.containsProperty(JMSConstants.WAIT_FOR_RESPONSE))
  waitForResponse =
    ((Boolean)msgContext.getProperty(

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

if(msgContext.containsProperty(JMSConstants.WAIT_FOR_RESPONSE))
  waitForResponse =
    ((Boolean)msgContext.getProperty(

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

if(msgContext.containsProperty(JMSConstants.WAIT_FOR_RESPONSE))
  waitForResponse =
    ((Boolean)msgContext.getProperty(

相关文章

微信公众号

最新文章

更多

MessageContext类方法