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 getUserId.
public static Binary getUserId(final Message_1_0 serverMsg) {
Binary userId = null;
final PropertiesSection propertiesSection = serverMsg.getPropertiesSection();
if (propertiesSection != null) {
final Properties properties = propertiesSection.getValue();
propertiesSection.dispose();
if (properties != null) {
userId = properties.getUserId();
}
}
return userId;
}
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 getContentEncoding.
static Symbol getContentEncoding(final Message_1_0 serverMsg) {
Symbol contentEncoding = null;
final PropertiesSection propertiesSection = serverMsg.getPropertiesSection();
if (propertiesSection != null) {
final Properties properties = propertiesSection.getValue();
propertiesSection.dispose();
if (properties != null) {
contentEncoding = properties.getContentEncoding();
}
}
return contentEncoding;
}
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 getCorrelationId.
public static Object getCorrelationId(final Message_1_0 serverMsg) {
Object correlationIdObject = null;
final PropertiesSection propertiesSection = serverMsg.getPropertiesSection();
if (propertiesSection != null) {
final Properties properties = propertiesSection.getValue();
propertiesSection.dispose();
if (properties != null) {
correlationIdObject = properties.getCorrelationId();
}
}
return correlationIdObject;
}
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 getCreationTime.
public static Date getCreationTime(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.getCreationTime();
}
}
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 getReplyTo.
public static String getReplyTo(final Message_1_0 serverMsg) {
String replyTo = null;
final PropertiesSection propertiesSection = serverMsg.getPropertiesSection();
if (propertiesSection != null) {
final Properties properties = propertiesSection.getValue();
propertiesSection.dispose();
if (properties != null) {
replyTo = properties.getReplyTo();
}
}
return replyTo;
}
Aggregations