org.apache.qpid.framing
Class BasicContentHeaderProperties
java.lang.Object
org.apache.qpid.framing.BasicContentHeaderProperties
- All Implemented Interfaces:
- ContentHeaderProperties
public class BasicContentHeaderProperties
- extends java.lang.Object
- implements ContentHeaderProperties
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BasicContentHeaderProperties
public BasicContentHeaderProperties()
getPropertyListSize
public int getPropertyListSize()
- Specified by:
getPropertyListSize
in interface ContentHeaderProperties
- Returns:
- the size of the encoded property list in bytes.
setPropertyFlags
public void setPropertyFlags(int propertyFlags)
getPropertyFlags
public int getPropertyFlags()
- Description copied from interface:
ContentHeaderProperties
- Gets the property flags. Property flags indicate which properties are set in the list. The
position and meaning of each flag is defined in the protocol specification for the particular
content type with which these properties are associated.
- Specified by:
getPropertyFlags
in interface ContentHeaderProperties
- Returns:
- flags
writePropertyListPayload
public void writePropertyListPayload(org.apache.mina.common.ByteBuffer buffer)
- Description copied from interface:
ContentHeaderProperties
- Writes the property list to the buffer, in a suitably encoded form.
- Specified by:
writePropertyListPayload
in interface ContentHeaderProperties
- Parameters:
buffer
- The buffer to write to
populatePropertiesFromBuffer
public void populatePropertiesFromBuffer(org.apache.mina.common.ByteBuffer buffer,
int propertyFlags,
int size)
throws AMQFrameDecodingException
- Description copied from interface:
ContentHeaderProperties
- Populates the properties from buffer.
- Specified by:
populatePropertiesFromBuffer
in interface ContentHeaderProperties
- Parameters:
buffer
- The buffer to read from.propertyFlags
- he property flags.
- Throws:
AMQFrameDecodingException
- when the buffer does not contain valid data
getContentType
public java.lang.String getContentType()
setContentType
public void setContentType(java.lang.String contentType)
getEncoding
public java.lang.String getEncoding()
setEncoding
public void setEncoding(java.lang.String encoding)
getHeaders
public FieldTable getHeaders()
setHeaders
public void setHeaders(FieldTable headers)
getDeliveryMode
public byte getDeliveryMode()
setDeliveryMode
public void setDeliveryMode(byte deliveryMode)
getPriority
public byte getPriority()
setPriority
public void setPriority(byte priority)
getCorrelationId
public java.lang.String getCorrelationId()
setCorrelationId
public void setCorrelationId(java.lang.String correlationId)
getReplyTo
public java.lang.String getReplyTo()
setReplyTo
public void setReplyTo(java.lang.String replyTo)
getExpiration
public long getExpiration()
setExpiration
public void setExpiration(long expiration)
getMessageId
public java.lang.String getMessageId()
setMessageId
public void setMessageId(java.lang.String messageId)
getTimestamp
public long getTimestamp()
setTimestamp
public void setTimestamp(long timestamp)
getType
public java.lang.String getType()
setType
public void setType(java.lang.String type)
getUserId
public java.lang.String getUserId()
setUserId
public void setUserId(java.lang.String userId)
getAppId
public java.lang.String getAppId()
setAppId
public void setAppId(java.lang.String appId)
getClusterId
public java.lang.String getClusterId()
setClusterId
public void setClusterId(java.lang.String clusterId)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object