use of org.apache.qpid.server.protocol.v1_0.type.messaging.PropertiesSection in project qpid-broker-j by apache.
the class MessageConverter_from_1_0 method getContentType.
public static Symbol getContentType(final Message_1_0 serverMsg) {
final PropertiesSection propertiesSection = serverMsg.getPropertiesSection();
if (propertiesSection != null) {
final Properties properties = propertiesSection.getValue();
propertiesSection.dispose();
if (properties != null) {
return properties.getContentType();
}
}
return null;
}
use of org.apache.qpid.server.protocol.v1_0.type.messaging.PropertiesSection in project qpid-broker-j by apache.
the class MessageConverter_from_1_0 method getGroupId.
public static String getGroupId(final Message_1_0 serverMsg) {
final PropertiesSection propertiesSection = serverMsg.getPropertiesSection();
if (propertiesSection != null) {
final Properties properties = propertiesSection.getValue();
propertiesSection.dispose();
if (properties != null) {
return properties.getGroupId();
}
}
return null;
}
use of org.apache.qpid.server.protocol.v1_0.type.messaging.PropertiesSection in project qpid-broker-j by apache.
the class MessageConverter_from_1_0 method getAbsoluteExpiryTime.
public static Date getAbsoluteExpiryTime(final Message_1_0 serverMsg) {
final PropertiesSection propertiesSection = serverMsg.getPropertiesSection();
if (propertiesSection != null) {
final Properties properties = propertiesSection.getValue();
propertiesSection.dispose();
if (properties != null) {
return properties.getAbsoluteExpiryTime();
}
}
return null;
}
use of org.apache.qpid.server.protocol.v1_0.type.messaging.PropertiesSection in project qpid-broker-j by apache.
the class MessageConverter_from_1_0 method getGroupSequence.
public static UnsignedInteger getGroupSequence(final Message_1_0 serverMsg) {
final PropertiesSection propertiesSection = serverMsg.getPropertiesSection();
if (propertiesSection != null) {
final Properties properties = propertiesSection.getValue();
propertiesSection.dispose();
if (properties != null) {
return properties.getGroupSequence();
}
}
return null;
}
use of org.apache.qpid.server.protocol.v1_0.type.messaging.PropertiesSection in project qpid-broker-j by apache.
the class MessageConverter_from_1_0 method getMessageId.
public static Object getMessageId(final Message_1_0 serverMsg) {
Object messageId = null;
final PropertiesSection propertiesSection = serverMsg.getPropertiesSection();
if (propertiesSection != null) {
final Properties properties = propertiesSection.getValue();
propertiesSection.dispose();
if (properties != null) {
messageId = properties.getMessageId();
}
}
return messageId;
}
Aggregations