org.apache.qpid.framing
Interface ContentHeaderProperties

All Known Subinterfaces:
CommonContentHeaderProperties
All Known Implementing Classes:
BasicContentHeaderProperties

public interface ContentHeaderProperties

There will be an implementation of this interface for each content type. All content types have associated header properties and this provides a way to encode and decode them.


Method Summary
 int getPropertyFlags()
          Gets the property flags.
 int getPropertyListSize()
           
 void populatePropertiesFromBuffer(org.apache.mina.common.ByteBuffer buffer, int propertyFlags, int size)
          Populates the properties from buffer.
 void updated()
           
 void writePropertyListPayload(org.apache.mina.common.ByteBuffer buffer)
          Writes the property list to the buffer, in a suitably encoded form.
 

Method Detail

writePropertyListPayload

void writePropertyListPayload(org.apache.mina.common.ByteBuffer buffer)
Writes the property list to the buffer, in a suitably encoded form.

Parameters:
buffer - The buffer to write to

populatePropertiesFromBuffer

void populatePropertiesFromBuffer(org.apache.mina.common.ByteBuffer buffer,
                                  int propertyFlags,
                                  int size)
                                  throws AMQFrameDecodingException
Populates the properties from buffer.

Parameters:
buffer - The buffer to read from.
propertyFlags - he property flags.
Throws:
AMQFrameDecodingException - when the buffer does not contain valid data

getPropertyListSize

int getPropertyListSize()
Returns:
the size of the encoded property list in bytes.

getPropertyFlags

int getPropertyFlags()
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.

Returns:
flags

updated

void updated()


Licensed to the Apache Software Foundation