org.apache.qpid.framing
Class BasicContentHeaderProperties

java.lang.Object
  extended by org.apache.qpid.framing.BasicContentHeaderProperties
All Implemented Interfaces:
ContentHeaderProperties

public class BasicContentHeaderProperties
extends java.lang.Object
implements ContentHeaderProperties


Constructor Summary
BasicContentHeaderProperties()
           
 
Method Summary
 java.lang.String getAppId()
           
 java.lang.String getClusterId()
           
 java.lang.String getContentType()
           
 java.lang.String getCorrelationId()
           
 byte getDeliveryMode()
           
 java.lang.String getEncoding()
           
 long getExpiration()
           
 FieldTable getHeaders()
           
 java.lang.String getMessageId()
           
 byte getPriority()
           
 int getPropertyFlags()
          Gets the property flags.
 int getPropertyListSize()
           
 java.lang.String getReplyTo()
           
 long getTimestamp()
           
 java.lang.String getType()
           
 java.lang.String getUserId()
           
 void populatePropertiesFromBuffer(org.apache.mina.common.ByteBuffer buffer, int propertyFlags, int size)
          Populates the properties from buffer.
 void setAppId(java.lang.String appId)
           
 void setClusterId(java.lang.String clusterId)
           
 void setContentType(java.lang.String contentType)
           
 void setCorrelationId(java.lang.String correlationId)
           
 void setDeliveryMode(byte deliveryMode)
           
 void setEncoding(java.lang.String encoding)
           
 void setExpiration(long expiration)
           
 void setHeaders(FieldTable headers)
           
 void setMessageId(java.lang.String messageId)
           
 void setPriority(byte priority)
           
 void setPropertyFlags(int propertyFlags)
           
 void setReplyTo(java.lang.String replyTo)
           
 void setTimestamp(long timestamp)
           
 void setType(java.lang.String type)
           
 void setUserId(java.lang.String userId)
           
 java.lang.String toString()
           
 void writePropertyListPayload(org.apache.mina.common.ByteBuffer buffer)
          Writes the property list to the buffer, in a suitably encoded form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicContentHeaderProperties

public BasicContentHeaderProperties()
Method Detail

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