org.apache.qpid.framing
Class BasicContentHeaderProperties

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

public class BasicContentHeaderProperties
extends Object
implements CommonContentHeaderProperties


Field Summary
static int NON_PERSISTENT
           
static int PERSISTENT
           
 
Constructor Summary
BasicContentHeaderProperties()
           
 
Method Summary
 AMQShortString getAppId()
           
 String getAppIdAsString()
           
 AMQShortString getClusterId()
           
 String getClusterIdAsString()
           
 AMQShortString getContentType()
           
 String getContentTypeAsString()
           
 AMQShortString getCorrelationId()
           
 String getCorrelationIdAsString()
           
 byte getDeliveryMode()
           
 AMQShortString getEncoding()
           
 String getEncodingAsString()
           
 long getExpiration()
           
 FieldTable getHeaders()
           
 AMQShortString getMessageId()
           
 String getMessageIdAsString()
           
 byte getPriority()
           
 int getPropertyFlags()
          Gets the property flags.
 int getPropertyListSize()
           
 AMQShortString getReplyTo()
           
 String getReplyToAsString()
           
 long getTimestamp()
           
 AMQShortString getType()
           
 String getTypeAsString()
           
 AMQShortString getUserId()
           
 String getUserIdAsString()
           
 void populatePropertiesFromBuffer(org.apache.mina.common.ByteBuffer buffer, int propertyFlags, int size)
          Populates the properties from buffer.
 boolean reset()
           
 void setAppId(AMQShortString appId)
           
 void setAppId(String appId)
           
 void setClusterId(AMQShortString clusterId)
           
 void setClusterId(String clusterId)
           
 void setContentType(AMQShortString contentType)
           
 void setContentType(String contentType)
           
 void setCorrelationId(AMQShortString correlationId)
           
 void setCorrelationId(String correlationId)
           
 void setDeliveryMode(byte deliveryMode)
           
 void setEncoding(AMQShortString encoding)
           
 void setEncoding(String encoding)
           
 void setExpiration(long expiration)
           
 void setHeaders(FieldTable headers)
           
 void setMessageId(AMQShortString messageId)
           
 void setMessageId(String messageId)
           
 void setPriority(byte priority)
           
 void setPropertyFlags(int propertyFlags)
           
 void setReplyTo(AMQShortString replyTo)
           
 void setReplyTo(String replyTo)
           
 void setTimestamp(long timestamp)
           
 void setType(AMQShortString type)
           
 void setType(String type)
           
 void setUserId(AMQShortString userId)
           
 void setUserId(String userId)
           
 String toString()
           
 void updated()
           
 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
 

Field Detail

NON_PERSISTENT

public static final int NON_PERSISTENT
See Also:
Constant Field Values

PERSISTENT

public static final int PERSISTENT
See Also:
Constant Field Values
Constructor Detail

BasicContentHeaderProperties

public BasicContentHeaderProperties()
Method Detail

reset

public boolean reset()

updated

public void updated()
Specified by:
updated in interface ContentHeaderProperties

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 AMQShortString getContentType()
Specified by:
getContentType in interface CommonContentHeaderProperties

getContentTypeAsString

public String getContentTypeAsString()

setContentType

public void setContentType(AMQShortString contentType)
Specified by:
setContentType in interface CommonContentHeaderProperties

setContentType

public void setContentType(String contentType)

getEncodingAsString

public String getEncodingAsString()

getEncoding

public AMQShortString getEncoding()
Specified by:
getEncoding in interface CommonContentHeaderProperties

setEncoding

public void setEncoding(String encoding)

setEncoding

public void setEncoding(AMQShortString encoding)
Specified by:
setEncoding in interface CommonContentHeaderProperties

getHeaders

public FieldTable getHeaders()
Specified by:
getHeaders in interface CommonContentHeaderProperties

setHeaders

public void setHeaders(FieldTable headers)
Specified by:
setHeaders in interface CommonContentHeaderProperties

getDeliveryMode

public byte getDeliveryMode()
Specified by:
getDeliveryMode in interface CommonContentHeaderProperties

setDeliveryMode

public void setDeliveryMode(byte deliveryMode)
Specified by:
setDeliveryMode in interface CommonContentHeaderProperties

getPriority

public byte getPriority()
Specified by:
getPriority in interface CommonContentHeaderProperties

setPriority

public void setPriority(byte priority)
Specified by:
setPriority in interface CommonContentHeaderProperties

getCorrelationId

public AMQShortString getCorrelationId()
Specified by:
getCorrelationId in interface CommonContentHeaderProperties

getCorrelationIdAsString

public String getCorrelationIdAsString()

setCorrelationId

public void setCorrelationId(String correlationId)

setCorrelationId

public void setCorrelationId(AMQShortString correlationId)
Specified by:
setCorrelationId in interface CommonContentHeaderProperties

getReplyToAsString

public String getReplyToAsString()

getReplyTo

public AMQShortString getReplyTo()
Specified by:
getReplyTo in interface CommonContentHeaderProperties

setReplyTo

public void setReplyTo(String replyTo)

setReplyTo

public void setReplyTo(AMQShortString replyTo)
Specified by:
setReplyTo in interface CommonContentHeaderProperties

getExpiration

public long getExpiration()
Specified by:
getExpiration in interface CommonContentHeaderProperties

setExpiration

public void setExpiration(long expiration)
Specified by:
setExpiration in interface CommonContentHeaderProperties

getMessageId

public AMQShortString getMessageId()
Specified by:
getMessageId in interface CommonContentHeaderProperties

getMessageIdAsString

public String getMessageIdAsString()

setMessageId

public void setMessageId(String messageId)

setMessageId

public void setMessageId(AMQShortString messageId)
Specified by:
setMessageId in interface CommonContentHeaderProperties

getTimestamp

public long getTimestamp()
Specified by:
getTimestamp in interface CommonContentHeaderProperties

setTimestamp

public void setTimestamp(long timestamp)
Specified by:
setTimestamp in interface CommonContentHeaderProperties

getTypeAsString

public String getTypeAsString()

getType

public AMQShortString getType()
Specified by:
getType in interface CommonContentHeaderProperties

setType

public void setType(String type)

setType

public void setType(AMQShortString type)
Specified by:
setType in interface CommonContentHeaderProperties

getUserIdAsString

public String getUserIdAsString()

getUserId

public AMQShortString getUserId()
Specified by:
getUserId in interface CommonContentHeaderProperties

setUserId

public void setUserId(String userId)

setUserId

public void setUserId(AMQShortString userId)
Specified by:
setUserId in interface CommonContentHeaderProperties

getAppIdAsString

public String getAppIdAsString()

getAppId

public AMQShortString getAppId()
Specified by:
getAppId in interface CommonContentHeaderProperties

setAppId

public void setAppId(String appId)

setAppId

public void setAppId(AMQShortString appId)
Specified by:
setAppId in interface CommonContentHeaderProperties

getClusterIdAsString

public String getClusterIdAsString()

getClusterId

public AMQShortString getClusterId()
Specified by:
getClusterId in interface CommonContentHeaderProperties

setClusterId

public void setClusterId(String clusterId)

setClusterId

public void setClusterId(AMQShortString clusterId)
Specified by:
setClusterId in interface CommonContentHeaderProperties

toString

public String toString()
Overrides:
toString in class Object


Licensed to the Apache Software Foundation