org.apache.qpid.proton.message.impl
Class MessageImpl

java.lang.Object
  extended by org.apache.qpid.proton.message.impl.MessageImpl
All Implemented Interfaces:
Message

public class MessageImpl
extends Object
implements Message


Field Summary
static short DEFAULT_PRIORITY
           
 
Constructor Summary
MessageImpl()
           
MessageImpl(Header header, DeliveryAnnotations deliveryAnnotations, MessageAnnotations messageAnnotations, Properties properties, ApplicationProperties applicationProperties, Section body, Footer footer)
           
 
Method Summary
 void clear()
           
 int decode(byte[] data, int offset, int length)
           
 int encode(byte[] data, int offset, int length)
           
 int encode(WritableBuffer buffer)
           
 int encode2(byte[] data, int offset, int length)
           
 String getAddress()
           
 ApplicationProperties getApplicationProperties()
           
 Section getBody()
           
 String getContentEncoding()
           
 String getContentType()
           
 Object getCorrelationId()
           
 long getCreationTime()
           
 DeliveryAnnotations getDeliveryAnnotations()
           
 long getDeliveryCount()
           
 MessageError getError()
           
 long getExpiryTime()
           
 Footer getFooter()
           
 String getGroupId()
           
 long getGroupSequence()
           
 Header getHeader()
           
 MessageAnnotations getMessageAnnotations()
           
 MessageFormat getMessageFormat()
           
 Object getMessageId()
           
 short getPriority()
           
 Properties getProperties()
           
 String getReplyTo()
           
 String getReplyToGroupId()
           
 String getSubject()
           
 long getTtl()
           
 byte[] getUserId()
           
 boolean isDurable()
           
 boolean isFirstAcquirer()
           
 void load(Object data)
           
 Object parseAMQPFormat(String value)
           
 Object save()
           
 void setAddress(String to)
           
 void setApplicationProperties(ApplicationProperties applicationProperties)
           
 void setBody(Section body)
           
 void setContentEncoding(String contentEncoding)
           
 void setContentType(String contentType)
           
 void setCorrelationId(Object correlationId)
           
 void setCreationTime(long creationTime)
           
 void setDeliveryAnnotations(DeliveryAnnotations deliveryAnnotations)
           
 void setDeliveryCount(long deliveryCount)
           
 void setDurable(boolean durable)
           
 void setExpiryTime(long absoluteExpiryTime)
           
 void setFirstAcquirer(boolean firstAcquirer)
           
 void setFooter(Footer footer)
           
 void setGroupId(String groupId)
           
 void setGroupSequence(long groupSequence)
           
 void setHeader(Header header)
           
 void setMessageAnnotations(MessageAnnotations messageAnnotations)
           
 void setMessageFormat(MessageFormat format)
           
 void setMessageId(Object messageId)
           
 void setPriority(short priority)
           
 void setProperties(Properties properties)
           
 void setReplyTo(String replyTo)
           
 void setReplyToGroupId(String replyToGroupId)
           
 void setSubject(String subject)
           
 void setTtl(long ttl)
           
 void setUserId(byte[] userId)
           
 String toAMQPFormat(Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PRIORITY

public static final short DEFAULT_PRIORITY
See Also:
Constant Field Values
Constructor Detail

MessageImpl

public MessageImpl()

MessageImpl

public MessageImpl(Header header,
                   DeliveryAnnotations deliveryAnnotations,
                   MessageAnnotations messageAnnotations,
                   Properties properties,
                   ApplicationProperties applicationProperties,
                   Section body,
                   Footer footer)
Method Detail

isDurable

public boolean isDurable()
Specified by:
isDurable in interface Message

getDeliveryCount

public long getDeliveryCount()
Specified by:
getDeliveryCount in interface Message

getPriority

public short getPriority()
Specified by:
getPriority in interface Message

isFirstAcquirer

public boolean isFirstAcquirer()
Specified by:
isFirstAcquirer in interface Message

getTtl

public long getTtl()
Specified by:
getTtl in interface Message

setDurable

public void setDurable(boolean durable)
Specified by:
setDurable in interface Message

setTtl

public void setTtl(long ttl)
Specified by:
setTtl in interface Message

setDeliveryCount

public void setDeliveryCount(long deliveryCount)
Specified by:
setDeliveryCount in interface Message

setFirstAcquirer

public void setFirstAcquirer(boolean firstAcquirer)
Specified by:
setFirstAcquirer in interface Message

setPriority

public void setPriority(short priority)
Specified by:
setPriority in interface Message

getMessageId

public Object getMessageId()
Specified by:
getMessageId in interface Message

getGroupSequence

public long getGroupSequence()
Specified by:
getGroupSequence in interface Message

getReplyToGroupId

public String getReplyToGroupId()
Specified by:
getReplyToGroupId in interface Message

getCreationTime

public long getCreationTime()
Specified by:
getCreationTime in interface Message

getAddress

public String getAddress()
Specified by:
getAddress in interface Message

getUserId

public byte[] getUserId()
Specified by:
getUserId in interface Message

getReplyTo

public String getReplyTo()
Specified by:
getReplyTo in interface Message

getGroupId

public String getGroupId()
Specified by:
getGroupId in interface Message

getContentType

public String getContentType()
Specified by:
getContentType in interface Message

getExpiryTime

public long getExpiryTime()
Specified by:
getExpiryTime in interface Message

getCorrelationId

public Object getCorrelationId()
Specified by:
getCorrelationId in interface Message

getContentEncoding

public String getContentEncoding()
Specified by:
getContentEncoding in interface Message

getSubject

public String getSubject()
Specified by:
getSubject in interface Message

setGroupSequence

public void setGroupSequence(long groupSequence)
Specified by:
setGroupSequence in interface Message

setUserId

public void setUserId(byte[] userId)
Specified by:
setUserId in interface Message

setCreationTime

public void setCreationTime(long creationTime)
Specified by:
setCreationTime in interface Message

setSubject

public void setSubject(String subject)
Specified by:
setSubject in interface Message

setGroupId

public void setGroupId(String groupId)
Specified by:
setGroupId in interface Message

setAddress

public void setAddress(String to)
Specified by:
setAddress in interface Message

setExpiryTime

public void setExpiryTime(long absoluteExpiryTime)
Specified by:
setExpiryTime in interface Message

setReplyToGroupId

public void setReplyToGroupId(String replyToGroupId)
Specified by:
setReplyToGroupId in interface Message

setContentEncoding

public void setContentEncoding(String contentEncoding)
Specified by:
setContentEncoding in interface Message

setContentType

public void setContentType(String contentType)
Specified by:
setContentType in interface Message

setReplyTo

public void setReplyTo(String replyTo)
Specified by:
setReplyTo in interface Message

setCorrelationId

public void setCorrelationId(Object correlationId)
Specified by:
setCorrelationId in interface Message

setMessageId

public void setMessageId(Object messageId)
Specified by:
setMessageId in interface Message

getHeader

public Header getHeader()
Specified by:
getHeader in interface Message

getDeliveryAnnotations

public DeliveryAnnotations getDeliveryAnnotations()
Specified by:
getDeliveryAnnotations in interface Message

getMessageAnnotations

public MessageAnnotations getMessageAnnotations()
Specified by:
getMessageAnnotations in interface Message

getProperties

public Properties getProperties()
Specified by:
getProperties in interface Message

getApplicationProperties

public ApplicationProperties getApplicationProperties()
Specified by:
getApplicationProperties in interface Message

getBody

public Section getBody()
Specified by:
getBody in interface Message

getFooter

public Footer getFooter()
Specified by:
getFooter in interface Message

setHeader

public void setHeader(Header header)
Specified by:
setHeader in interface Message

setDeliveryAnnotations

public void setDeliveryAnnotations(DeliveryAnnotations deliveryAnnotations)
Specified by:
setDeliveryAnnotations in interface Message

setMessageAnnotations

public void setMessageAnnotations(MessageAnnotations messageAnnotations)
Specified by:
setMessageAnnotations in interface Message

setProperties

public void setProperties(Properties properties)
Specified by:
setProperties in interface Message

setApplicationProperties

public void setApplicationProperties(ApplicationProperties applicationProperties)
Specified by:
setApplicationProperties in interface Message

setBody

public void setBody(Section body)
Specified by:
setBody in interface Message

setFooter

public void setFooter(Footer footer)
Specified by:
setFooter in interface Message

decode

public int decode(byte[] data,
                  int offset,
                  int length)
Specified by:
decode in interface Message

encode

public int encode(byte[] data,
                  int offset,
                  int length)
Specified by:
encode in interface Message

encode2

public int encode2(byte[] data,
                   int offset,
                   int length)

encode

public int encode(WritableBuffer buffer)

load

public void load(Object data)
Specified by:
load in interface Message

save

public Object save()
Specified by:
save in interface Message

toAMQPFormat

public String toAMQPFormat(Object value)
Specified by:
toAMQPFormat in interface Message

parseAMQPFormat

public Object parseAMQPFormat(String value)
Specified by:
parseAMQPFormat in interface Message

setMessageFormat

public void setMessageFormat(MessageFormat format)
Specified by:
setMessageFormat in interface Message

getMessageFormat

public MessageFormat getMessageFormat()
Specified by:
getMessageFormat in interface Message

clear

public void clear()
Specified by:
clear in interface Message

getError

public MessageError getError()
Specified by:
getError in interface Message


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.