@Override public ApplicationPropertiesSection copy() { return new ApplicationPropertiesSection(this); }
public ApplicationPropertiesSection getApplicationPropertiesSection() { return _applicationPropertiesSection == null ? null : _applicationPropertiesSection.copy(); }
@Override public boolean containsHeader(final String name) { return _applicationPropertiesSection != null && _applicationPropertiesSection.getValue().containsKey(name); }
@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(); } }
@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; }
_applicationPropertiesSection.dispose(); _applicationPropertiesSection = null;
_applicationPropertiesSection.writeTo(dest);
@Override public Object getHeader(final String name) { return _applicationPropertiesSection == null ? null : _applicationPropertiesSection.getValue().get(name); }
@Override protected ApplicationPropertiesSection createObject(final DescribedTypeConstructorRegistry describedTypeRegistry, final QpidByteBuffer encodedForm) { return new ApplicationPropertiesSection(encodedForm); }
public Map<String, Object> getHeadersAsMap() { return _applicationPropertiesSection == null ? new HashMap<>() : new HashMap<>( _applicationPropertiesSection.getValue()); } }
@Override public ApplicationPropertiesSection createEncodingRetainingSection() { return new ApplicationPropertiesSection(this); }
@Override public boolean containsHeaders(final Set<String> names) { if (_applicationPropertiesSection == null) { return false; } for (String key : names) { if (!_applicationPropertiesSection.getValue().containsKey(key)) { return false; } } return true; }
@Override public Collection<String> getHeaderNames() { if (_applicationPropertiesSection == null) { return Collections.emptySet(); } return Collections.unmodifiableCollection(_applicationPropertiesSection.getValue().keySet()); }