org.apache.qpid.transport
Class MessageProperties

java.lang.Object
  extended by org.apache.qpid.transport.Struct
      extended by org.apache.qpid.transport.MessageProperties
All Implemented Interfaces:
Encodable

public final class MessageProperties
extends Struct


Field Summary
static int TYPE
           
 
Fields inherited from class org.apache.qpid.transport.Struct
dirty
 
Constructor Summary
MessageProperties()
           
MessageProperties(long contentLength, UUID messageId, byte[] correlationId, ReplyTo replyTo, String contentType, String contentEncoding, byte[] userId, byte[] appId, Map<String,Object> applicationHeaders)
           
 
Method Summary
 MessageProperties appId(byte[] value)
           
 MessageProperties applicationHeaders(Map<String,Object> value)
           
 MessageProperties clearAppId()
           
 MessageProperties clearApplicationHeaders()
           
 MessageProperties clearContentEncoding()
           
 MessageProperties clearContentLength()
           
 MessageProperties clearContentType()
           
 MessageProperties clearCorrelationId()
           
 MessageProperties clearMessageId()
           
 MessageProperties clearReplyTo()
           
 MessageProperties clearUserId()
           
 MessageProperties contentEncoding(String value)
           
 MessageProperties contentLength(long value)
           
 MessageProperties contentType(String value)
           
 MessageProperties correlationId(byte[] value)
           
 byte[] getAppId()
           
 Map<String,Object> getApplicationHeaders()
           
 String getContentEncoding()
           
 long getContentLength()
           
 String getContentType()
           
 byte[] getCorrelationId()
           
 byte getEncodedTrack()
           
 Map<String,Object> getFields()
           
 UUID getMessageId()
           
 int getPackWidth()
           
 ReplyTo getReplyTo()
           
 int getSizeWidth()
           
 int getStructType()
           
 byte[] getUserId()
           
 boolean hasAppId()
           
 boolean hasApplicationHeaders()
           
 boolean hasContentEncoding()
           
 boolean hasContentLength()
           
 boolean hasContentType()
           
 boolean hasCorrelationId()
           
 boolean hasMessageId()
           
 boolean hasPayload()
           
 boolean hasReplyTo()
           
 boolean hasUserId()
           
 MessageProperties messageId(UUID value)
           
 void read(Decoder dec)
          Decodes this encodable using the given decoder.
 MessageProperties replyTo(ReplyTo value)
           
 MessageProperties setAppId(byte[] value)
           
 MessageProperties setApplicationHeaders(Map<String,Object> value)
           
 MessageProperties setContentEncoding(String value)
           
 MessageProperties setContentLength(long value)
           
 MessageProperties setContentType(String value)
           
 MessageProperties setCorrelationId(byte[] value)
           
 MessageProperties setMessageId(UUID value)
           
 MessageProperties setReplyTo(ReplyTo value)
           
 MessageProperties setUserId(byte[] value)
           
 MessageProperties userId(byte[] value)
           
 void write(Encoder enc)
          Encodes this encodable using the given encoder.
 
Methods inherited from class org.apache.qpid.transport.Struct
create, getEncodedType, isDirty, setDirty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

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

MessageProperties

public MessageProperties()

MessageProperties

public MessageProperties(long contentLength,
                         UUID messageId,
                         byte[] correlationId,
                         ReplyTo replyTo,
                         String contentType,
                         String contentEncoding,
                         byte[] userId,
                         byte[] appId,
                         Map<String,Object> applicationHeaders)
Method Detail

getStructType

public final int getStructType()
Specified by:
getStructType in class Struct

getSizeWidth

public final int getSizeWidth()
Specified by:
getSizeWidth in class Struct

getPackWidth

public final int getPackWidth()
Specified by:
getPackWidth in class Struct

hasPayload

public final boolean hasPayload()

getEncodedTrack

public final byte getEncodedTrack()

hasContentLength

public final boolean hasContentLength()

clearContentLength

public final MessageProperties clearContentLength()

getContentLength

public final long getContentLength()

setContentLength

public final MessageProperties setContentLength(long value)

contentLength

public final MessageProperties contentLength(long value)

hasMessageId

public final boolean hasMessageId()

clearMessageId

public final MessageProperties clearMessageId()

getMessageId

public final UUID getMessageId()

setMessageId

public final MessageProperties setMessageId(UUID value)

messageId

public final MessageProperties messageId(UUID value)

hasCorrelationId

public final boolean hasCorrelationId()

clearCorrelationId

public final MessageProperties clearCorrelationId()

getCorrelationId

public final byte[] getCorrelationId()

setCorrelationId

public final MessageProperties setCorrelationId(byte[] value)

correlationId

public final MessageProperties correlationId(byte[] value)

hasReplyTo

public final boolean hasReplyTo()

clearReplyTo

public final MessageProperties clearReplyTo()

getReplyTo

public final ReplyTo getReplyTo()

setReplyTo

public final MessageProperties setReplyTo(ReplyTo value)

replyTo

public final MessageProperties replyTo(ReplyTo value)

hasContentType

public final boolean hasContentType()

clearContentType

public final MessageProperties clearContentType()

getContentType

public final String getContentType()

setContentType

public final MessageProperties setContentType(String value)

contentType

public final MessageProperties contentType(String value)

hasContentEncoding

public final boolean hasContentEncoding()

clearContentEncoding

public final MessageProperties clearContentEncoding()

getContentEncoding

public final String getContentEncoding()

setContentEncoding

public final MessageProperties setContentEncoding(String value)

contentEncoding

public final MessageProperties contentEncoding(String value)

hasUserId

public final boolean hasUserId()

clearUserId

public final MessageProperties clearUserId()

getUserId

public final byte[] getUserId()

setUserId

public final MessageProperties setUserId(byte[] value)

userId

public final MessageProperties userId(byte[] value)

hasAppId

public final boolean hasAppId()

clearAppId

public final MessageProperties clearAppId()

getAppId

public final byte[] getAppId()

setAppId

public final MessageProperties setAppId(byte[] value)

appId

public final MessageProperties appId(byte[] value)

hasApplicationHeaders

public final boolean hasApplicationHeaders()

clearApplicationHeaders

public final MessageProperties clearApplicationHeaders()

getApplicationHeaders

public final Map<String,Object> getApplicationHeaders()

setApplicationHeaders

public final MessageProperties setApplicationHeaders(Map<String,Object> value)

applicationHeaders

public final MessageProperties applicationHeaders(Map<String,Object> value)

write

public void write(Encoder enc)
Description copied from interface: Encodable
Encodes this encodable using the given encoder.

Specified by:
write in interface Encodable
Specified by:
write in class Struct
Parameters:
enc - the encoder.

read

public void read(Decoder dec)
Description copied from interface: Encodable
Decodes this encodable using the given decoder.

Specified by:
read in interface Encodable
Specified by:
read in class Struct
Parameters:
dec - the decoder.

getFields

public Map<String,Object> getFields()
Specified by:
getFields in class Struct


Licensed to the Apache Software Foundation