org.apache.qpid.proton.message.Message.getProperties()方法的使用及代码示例

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

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

Message.getProperties介绍

暂无

代码示例

代码示例来源:origin: apache/activemq-artemis

/**
* Return the set CorrelationId value in the original form, if there are no properties
* in the given message return null.
*
* @return the set message ID in its original form or null if not set.
*/
public Object getRawCorrelationId() {
 if (message.getProperties() == null) {
   return null;
 }
 return message.getProperties().getCorrelationId();
}

代码示例来源:origin: apache/activemq-artemis

/**
* Return the set GroupId value in String form, if there are no properties
* in the given message return null.
*
* @return the set GroupID in String form or null if not set.
*/
public String getGroupId() {
 if (message.getProperties() == null) {
   return null;
 }
 return message.getProperties().getGroupId();
}

代码示例来源:origin: apache/activemq-artemis

/**
* Return the set address that was set in the Message To field.
*
* @return the set address String form or null if not set.
*/
public String getAddress() {
 if (message.getProperties() == null) {
   return null;
 }
 return message.getProperties().getTo();
}

代码示例来源:origin: apache/activemq-artemis

/**
* Return the set replyTo address that was set in the Message To field.
*
* @return the set replyTo address String form or null if not set.
*/
public String getReplyToAddress() {
 if (message.getProperties() == null) {
   return null;
 }
 return message.getProperties().getReplyTo();
}

代码示例来源:origin: apache/activemq-artemis

/**
* Return the set MessageId value in the original form, if there are no properties
* in the given message return null.
*
* @return the set message ID in its original form or null if not set.
*/
public Object getRawMessageId() {
 if (message.getProperties() == null) {
   return null;
 }
 return message.getProperties().getMessageId();
}

代码示例来源:origin: apache/activemq-artemis

/**
* Return the set Subject value in String form, if there are no properties
* in the given message return null.
*
* @return the set Subject in String form or null if not set.
*/
public String getSubject() {
 if (message.getProperties() == null) {
   return null;
 }
 return message.getProperties().getSubject();
}

代码示例来源:origin: apache/activemq-artemis

/**
* Return the set MessageId value in String form, if there are no properties
* in the given message return null.
*
* @return the set message ID in String form or null if not set.
*/
public String getMessageId() {
 if (message.getProperties() == null || message.getProperties().getMessageId() == null) {
   return null;
 }
 return message.getProperties().getMessageId().toString();
}

代码示例来源:origin: apache/activemq-artemis

/**
* Return the set CorrelationId value in String form, if there are no properties
* in the given message return null.
*
* @return the set correlation ID in String form or null if not set.
*/
public String getCorrelationId() {
 if (message.getProperties() == null || message.getProperties().getCorrelationId() == null) {
   return null;
 }
 return message.getProperties().getCorrelationId().toString();
}

代码示例来源:origin: apache/activemq-artemis

private void lazyCreateProperties() {
 if (message.getProperties() == null) {
   message.setProperties(new Properties());
 }
}

代码示例来源:origin: Azure/azure-event-hubs-java

if (amqpMessage.getProperties() != null) {
  if (amqpMessage.getMessageId() != null)
    receiveProperties.put(AmqpConstants.AMQP_PROPERTY_MESSAGE_ID, amqpMessage.getMessageId());
  if (amqpMessage.getContentEncoding() != null)
    receiveProperties.put(AmqpConstants.AMQP_PROPERTY_CONTENT_ENCODING, amqpMessage.getContentEncoding());
  if (amqpMessage.getProperties().getAbsoluteExpiryTime() != null)
    receiveProperties.put(AmqpConstants.AMQP_PROPERTY_ABSOLUTE_EXPRITY_TIME, amqpMessage.getExpiryTime());
  if (amqpMessage.getProperties().getCreationTime() != null)
    receiveProperties.put(AmqpConstants.AMQP_PROPERTY_CREATION_TIME, amqpMessage.getCreationTime());
  if (amqpMessage.getGroupId() != null)
    receiveProperties.put(AmqpConstants.AMQP_PROPERTY_GROUP_ID, amqpMessage.getGroupId());
  if (amqpMessage.getProperties().getGroupSequence() != null)
    receiveProperties.put(AmqpConstants.AMQP_PROPERTY_GROUP_SEQUENCE, amqpMessage.getGroupSequence());
  if (amqpMessage.getReplyToGroupId() != null)

代码示例来源:origin: io.vertx/vertx-amqp-bridge

@Test
public void testJSON_to_AMQP_WithNoPropertiesSection() {
 JsonObject jsonObject = new JsonObject();
 Message protonMsg = translator.convertToAmqpMessage(jsonObject);
 assertNotNull("Expected converted msg", protonMsg);
 assertNull("expected converted msg to have no properties section", protonMsg.getProperties());
}

代码示例来源:origin: org.apache.qpid/proton-jms

final Properties properties = amqp.getProperties();
if( properties!=null ) {
  if( properties.getMessageId()!=null ) {

代码示例来源:origin: org.apache.activemq/activemq-all

final Properties properties = amqp.getProperties();
if (properties != null) {
  jms.setBooleanProperty(JMS_AMQP_PROPERTIES, true);

代码示例来源:origin: org.apache.activemq/activemq-osgi

final Properties properties = amqp.getProperties();
if (properties != null) {
  jms.setBooleanProperty(JMS_AMQP_PROPERTIES, true);

代码示例来源:origin: Azure/azure-service-bus-java

Properties properties = amqpMessage.getProperties();
if (properties != null)

代码示例来源:origin: io.vertx/vertx-amqp-bridge

assertNotNull("Expected converted msg", protonMsg);
Properties properties = protonMsg.getProperties();
assertNotNull("Properties section not present", properties);

代码示例来源:origin: org.apache.activemq/artemis-amqp-protocol

final Properties properties = amqp.getProperties();
if (properties != null) {
  if (properties.getMessageId() != null) {

代码示例来源:origin: Azure/azure-service-bus-java

amqpMessage.setCorrelationId(brokeredMessage.getCorrelationId());
amqpMessage.setSubject(brokeredMessage.getLabel());
amqpMessage.getProperties().setTo(brokeredMessage.getTo());
amqpMessage.setReplyTo(brokeredMessage.getReplyTo());
amqpMessage.setReplyToGroupId(brokeredMessage.getReplyToSessionId());

相关文章

微信公众号

最新文章

更多