@Override public PropertiesSection copy() { return new PropertiesSection(this); }
public PropertiesSection getPropertiesSection() { return _propertiesSection == null ? null : _propertiesSection.copy(); }
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; }
public Properties getProperties() { return _propertiesSection == null ? null : _propertiesSection.getValue(); }
@Override public void reallocate() { if (_headerSection != null) { _headerSection.reallocate(); } if (_deliveryAnnotationsSection != null) { _deliveryAnnotationsSection.reallocate(); } if (_messageAnnotationsSection != null) { _messageAnnotationsSection.reallocate(); } if (_propertiesSection != null) { _propertiesSection.reallocate(); } if (_applicationPropertiesSection != null) { _applicationPropertiesSection.reallocate(); } if (_footerSection != null) { _footerSection.reallocate(); } }
_propertiesSection.dispose(); _propertiesSection = null;
@Override public void clearEncodedForm() { if (_headerSection != null) { _headerSection.clearEncodedForm(); } if (_deliveryAnnotationsSection != null) { _deliveryAnnotationsSection.clearEncodedForm(); } if (_messageAnnotationsSection != null) { _messageAnnotationsSection.clearEncodedForm(); } if (_propertiesSection != null) { _propertiesSection.clearEncodedForm(); } if (_applicationPropertiesSection != null) { _applicationPropertiesSection.clearEncodedForm(); } if (_footerSection != null) { _footerSection.clearEncodedForm(); } }
@Override public int getStorableSize() { long size = 17L; if (_headerSection != null) { size += _headerSection.getEncodedSize(); } if (_deliveryAnnotationsSection != null) { size += _deliveryAnnotationsSection.getEncodedSize(); } if (_messageAnnotationsSection != null) { size += _messageAnnotationsSection.getEncodedSize(); } if (_propertiesSection != null) { size += _propertiesSection.getEncodedSize(); } if (_applicationPropertiesSection != null) { size += _applicationPropertiesSection.getEncodedSize(); } if (_footerSection != null) { size += _footerSection.getEncodedSize(); } return (int) size; }
_propertiesSection.writeTo(dest);
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; }
@Override public PropertiesSection createEncodingRetainingSection() { return new PropertiesSection(this); } }
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; }
@Override protected PropertiesSection createObject(final QpidByteBuffer encodedForm) { return new PropertiesSection(encodedForm); }
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; }
public String getTo() { return _propertiesSection == null ? null : _propertiesSection.getValue().getTo(); }
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; }