Search in sources :

Example 1 with PropertiesSection

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;
}
Also used : PropertiesSection(org.apache.qpid.server.protocol.v1_0.type.messaging.PropertiesSection) Properties(org.apache.qpid.server.protocol.v1_0.type.messaging.Properties)

Example 2 with PropertiesSection

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;
}
Also used : PropertiesSection(org.apache.qpid.server.protocol.v1_0.type.messaging.PropertiesSection) Properties(org.apache.qpid.server.protocol.v1_0.type.messaging.Properties)

Example 3 with PropertiesSection

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;
}
Also used : PropertiesSection(org.apache.qpid.server.protocol.v1_0.type.messaging.PropertiesSection) Properties(org.apache.qpid.server.protocol.v1_0.type.messaging.Properties)

Example 4 with PropertiesSection

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;
}
Also used : PropertiesSection(org.apache.qpid.server.protocol.v1_0.type.messaging.PropertiesSection) Properties(org.apache.qpid.server.protocol.v1_0.type.messaging.Properties)

Example 5 with PropertiesSection

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;
}
Also used : PropertiesSection(org.apache.qpid.server.protocol.v1_0.type.messaging.PropertiesSection) Properties(org.apache.qpid.server.protocol.v1_0.type.messaging.Properties)

Aggregations

PropertiesSection (org.apache.qpid.server.protocol.v1_0.type.messaging.PropertiesSection)12 Properties (org.apache.qpid.server.protocol.v1_0.type.messaging.Properties)10 AmqpSequenceSection (org.apache.qpid.server.protocol.v1_0.type.messaging.AmqpSequenceSection)2 AmqpValueSection (org.apache.qpid.server.protocol.v1_0.type.messaging.AmqpValueSection)2 ApplicationPropertiesSection (org.apache.qpid.server.protocol.v1_0.type.messaging.ApplicationPropertiesSection)2 DataSection (org.apache.qpid.server.protocol.v1_0.type.messaging.DataSection)2 DeliveryAnnotationsSection (org.apache.qpid.server.protocol.v1_0.type.messaging.DeliveryAnnotationsSection)2 EncodingRetainingSection (org.apache.qpid.server.protocol.v1_0.type.messaging.EncodingRetainingSection)2 FooterSection (org.apache.qpid.server.protocol.v1_0.type.messaging.FooterSection)2 HeaderSection (org.apache.qpid.server.protocol.v1_0.type.messaging.HeaderSection)2 MessageAnnotationsSection (org.apache.qpid.server.protocol.v1_0.type.messaging.MessageAnnotationsSection)2 QpidByteBuffer (org.apache.qpid.server.bytebuffer.QpidByteBuffer)1 Binary (org.apache.qpid.server.protocol.v1_0.type.Binary)1 Symbol (org.apache.qpid.server.protocol.v1_0.type.Symbol)1 ConnectionScopedRuntimeException (org.apache.qpid.server.util.ConnectionScopedRuntimeException)1