/** * The annotation value for the JMS Message content type. For a generic JMS message this * value is omitted so we return null here, subclasses should override this to return the * correct content type value for their payload. * * @return a Symbol value indicating the message content type. */ public Symbol getContentType() { if (properties != null && properties.getContentType() != null) { return properties.getContentType(); } return null; }
/** * The annotation value for the JMS Message content type. For a generic JMS message this * value is omitted so we return null here, subclasses should override this to return the * correct content type value for their payload. * * @return a Symbol value indicating the message content type. */ public Symbol getContentType() { if (properties != null && properties.getContentType() != null) { return properties.getContentType(); } return null; }
@Override public String getContentType() { return (_properties == null || _properties.getContentType() == null) ? null : _properties.getContentType().toString(); }
@Override public String getContentType() { return (_properties == null || _properties.getContentType() == null) ? null : _properties.getContentType().toString(); }
@Override public String getContentType() { return (_properties == null || _properties.getContentType() == null) ? null : _properties.getContentType().toString(); }
@Override public String getContentType() { return (_properties == null || _properties.getContentType() == null) ? null : _properties.getContentType().toString(); }
if (properties.getContentType() != null) iotHubTransportMessage.setContentType(properties.getContentType().toString());
return _impl.getCorrelationId(); case 6: return _impl.getContentType(); case 7: return _impl.getContentEncoding();
return _impl.getCorrelationId(); case 6: return _impl.getContentType(); case 7: return _impl.getContentEncoding();
return _impl.getCorrelationId(); case 6: return _impl.getContentType(); case 7: return _impl.getContentEncoding();
return _impl.getCorrelationId(); case 6: return _impl.getContentType(); case 7: return _impl.getContentEncoding();
jms.setJMSCorrelationID(AMQPMessageIdHelper.INSTANCE.toCorrelationIdString(properties.getCorrelationId())); if (properties.getContentType() != null) { jms.setStringProperty(JMS_AMQP_CONTENT_TYPE, properties.getContentType().toString());
assertEquals("expected reply to group id value to be present", testReplyToGroupId, properties.getReplyToGroupId()); assertEquals("expected content type value to be present", Symbol.valueOf(testContentType), properties.getContentType()); assertEquals("expected content encoding value to be present", Symbol.valueOf(testContentEncoding), properties.getContentEncoding());
public int size() { return _impl.getReplyToGroupId() != null ? 13 : _impl.getGroupSequence() != null ? 12 : _impl.getGroupId() != null ? 11 : _impl.getCreationTime() != null ? 10 : _impl.getAbsoluteExpiryTime() != null ? 9 : _impl.getContentEncoding() != null ? 8 : _impl.getContentType() != null ? 7 : _impl.getCorrelationId() != null ? 6 : _impl.getReplyTo() != null ? 5 : _impl.getSubject() != null ? 4 : _impl.getTo() != null ? 3 : _impl.getUserId() != null ? 2 : _impl.getMessageId() != null ? 1 : 0; }
private int getElementCount(Properties properties) { if (properties.getReplyToGroupId() != null) { return 13; } else if (properties.getGroupSequence() != null) { return 12; } else if (properties.getGroupId() != null) { return 11; } else if (properties.getCreationTime() != null) { return 10; } else if (properties.getAbsoluteExpiryTime() != null) { return 9; } else if (properties.getContentEncoding() != null) { return 8; } else if (properties.getContentType() != null) { return 7; } else if (properties.getCorrelationId() != null) { return 6; } else if (properties.getReplyTo() != null) { return 5; } else if (properties.getSubject() != null) { return 4; } else if (properties.getTo() != null) { return 3; } else if (properties.getUserId() != null) { return 2; } else if (properties.getMessageId() != null) { return 1; } return 0; }
public int size() { return _impl.getReplyToGroupId() != null ? 13 : _impl.getGroupSequence() != null ? 12 : _impl.getGroupId() != null ? 11 : _impl.getCreationTime() != null ? 10 : _impl.getAbsoluteExpiryTime() != null ? 9 : _impl.getContentEncoding() != null ? 8 : _impl.getContentType() != null ? 7 : _impl.getCorrelationId() != null ? 6 : _impl.getReplyTo() != null ? 5 : _impl.getSubject() != null ? 4 : _impl.getTo() != null ? 3 : _impl.getUserId() != null ? 2 : _impl.getMessageId() != null ? 1 : 0; }
jms.setJMSCorrelationID(AMQPMessageIdHelper.INSTANCE.toCorrelationIdString(properties.getCorrelationId())); if (properties.getContentType() != null) { jms.setStringProperty(JMS_AMQP_CONTENT_TYPE, properties.getContentType().toString());
private static AmqpJmsMessageFacade createWithoutAnnotation(Section body, Properties properties) { Symbol messageContentType = properties != null ? properties.getContentType() : null;
private static AmqpJmsMessageFacade createWithoutAnnotation(Section body, Properties properties) { Symbol messageContentType = properties != null ? properties.getContentType() : null;
break; case 6: getEncoder().writeSymbol(properties.getContentType()); break; case 7: