Class Properties
- java.lang.Object
-
- com.swiftmq.amqp.v100.types.AMQPType
-
- com.swiftmq.amqp.v100.types.AMQPList
-
- com.swiftmq.amqp.v100.generated.messaging.message_format.Properties
-
- All Implemented Interfaces:
SectionIF
public class Properties extends AMQPList implements SectionIF
The properties section is used for a defined set of standard properties of the message. The properties section is part of the bare message; therefore, if retransmitted by an intermediary, it MUST remain unaltered.
- Version:
- AMQP Version v100. Generation Date: Wed Apr 18 14:09:32 CEST 2012
- Author:
- IIT Software GmbH, Bremen/Germany, (c) 2012, All Rights Reserved
-
-
Field Summary
Fields Modifier and Type Field Description AMQPDescribedConstructor
codeConstructor
static long
DESCRIPTOR_CODE
static java.lang.String
DESCRIPTOR_NAME
AMQPDescribedConstructor
nameConstructor
-
Constructor Summary
Constructors Constructor Description Properties()
Constructs a Properties.Properties(java.util.List initValue)
Constructs a Properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SectionVisitor visitor)
Accept method for a Section visitor.AMQPTimestamp
getAbsoluteExpiryTime()
Returns the optional AbsoluteExpiryTime field.AMQPDescribedConstructor
getArrayConstructor()
Returns an array constructor (internal use)AMQPSymbol
getContentEncoding()
Returns the optional ContentEncoding field.AMQPSymbol
getContentType()
Returns the optional ContentType field.MessageIdIF
getCorrelationId()
Returns the optional CorrelationId field.AMQPTimestamp
getCreationTime()
Returns the optional CreationTime field.AMQPString
getGroupId()
Returns the optional GroupId field.SequenceNo
getGroupSequence()
Returns the optional GroupSequence field.MessageIdIF
getMessageId()
Returns the optional MessageId field.int
getPredictedSize()
Returns the predicted size of this Properties.AddressIF
getReplyTo()
Returns the optional ReplyTo field.AMQPString
getReplyToGroupId()
Returns the optional ReplyToGroupId field.AMQPString
getSubject()
Returns the optional Subject field.AddressIF
getTo()
Returns the optional To field.AMQPBinary
getUserId()
Returns the optional UserId field.java.lang.String
getValueString()
Returns the value string representation of the type.boolean
hasDescriptor()
Return whether this Properties has a descriptorvoid
setAbsoluteExpiryTime(AMQPTimestamp absoluteExpiryTime)
Sets the optional AbsoluteExpiryTime field.void
setContentEncoding(AMQPSymbol contentEncoding)
Sets the optional ContentEncoding field.void
setContentType(AMQPSymbol contentType)
Sets the optional ContentType field.void
setCorrelationId(MessageIdIF correlationId)
Sets the optional CorrelationId field.void
setCreationTime(AMQPTimestamp creationTime)
Sets the optional CreationTime field.void
setGroupId(AMQPString groupId)
Sets the optional GroupId field.void
setGroupSequence(SequenceNo groupSequence)
Sets the optional GroupSequence field.void
setMessageId(MessageIdIF messageId)
Sets the optional MessageId field.void
setReplyTo(AddressIF replyTo)
Sets the optional ReplyTo field.void
setReplyToGroupId(AMQPString replyToGroupId)
Sets the optional ReplyToGroupId field.void
setSubject(AMQPString subject)
Sets the optional Subject field.void
setTo(AddressIF to)
Sets the optional To field.void
setUserId(AMQPBinary userId)
Sets the optional UserId field.java.lang.String
toString()
void
writeContent(java.io.DataOutput out)
Write the content of this type to a DataOutput.-
Methods inherited from class com.swiftmq.amqp.v100.types.AMQPList
getValue, readContent, setValue
-
Methods inherited from class com.swiftmq.amqp.v100.types.AMQPType
getCode, getConstructor, getName, isWriteCode, resetConstructor, setCode, setConstructor, setWriteCode
-
-
-
-
Field Detail
-
DESCRIPTOR_NAME
public static java.lang.String DESCRIPTOR_NAME
-
DESCRIPTOR_CODE
public static long DESCRIPTOR_CODE
-
codeConstructor
public AMQPDescribedConstructor codeConstructor
-
nameConstructor
public AMQPDescribedConstructor nameConstructor
-
-
Method Detail
-
hasDescriptor
public boolean hasDescriptor()
Return whether this Properties has a descriptor- Overrides:
hasDescriptor
in classAMQPType
- Returns:
- true/false
-
accept
public void accept(SectionVisitor visitor)
Accept method for a Section visitor.
-
getMessageId
public MessageIdIF getMessageId()
Returns the optional MessageId field.- Returns:
- MessageId
-
setMessageId
public void setMessageId(MessageIdIF messageId)
Sets the optional MessageId field.- Parameters:
messageId
- MessageId
-
getUserId
public AMQPBinary getUserId()
Returns the optional UserId field.- Returns:
- UserId
-
setUserId
public void setUserId(AMQPBinary userId)
Sets the optional UserId field.- Parameters:
userId
- UserId
-
getTo
public AddressIF getTo()
Returns the optional To field.- Returns:
- To
-
setTo
public void setTo(AddressIF to)
Sets the optional To field.- Parameters:
to
- To
-
getSubject
public AMQPString getSubject()
Returns the optional Subject field.- Returns:
- Subject
-
setSubject
public void setSubject(AMQPString subject)
Sets the optional Subject field.- Parameters:
subject
- Subject
-
getReplyTo
public AddressIF getReplyTo()
Returns the optional ReplyTo field.- Returns:
- ReplyTo
-
setReplyTo
public void setReplyTo(AddressIF replyTo)
Sets the optional ReplyTo field.- Parameters:
replyTo
- ReplyTo
-
getCorrelationId
public MessageIdIF getCorrelationId()
Returns the optional CorrelationId field.- Returns:
- CorrelationId
-
setCorrelationId
public void setCorrelationId(MessageIdIF correlationId)
Sets the optional CorrelationId field.- Parameters:
correlationId
- CorrelationId
-
getContentType
public AMQPSymbol getContentType()
Returns the optional ContentType field.- Returns:
- ContentType
-
setContentType
public void setContentType(AMQPSymbol contentType)
Sets the optional ContentType field.- Parameters:
contentType
- ContentType
-
getContentEncoding
public AMQPSymbol getContentEncoding()
Returns the optional ContentEncoding field.- Returns:
- ContentEncoding
-
setContentEncoding
public void setContentEncoding(AMQPSymbol contentEncoding)
Sets the optional ContentEncoding field.- Parameters:
contentEncoding
- ContentEncoding
-
getAbsoluteExpiryTime
public AMQPTimestamp getAbsoluteExpiryTime()
Returns the optional AbsoluteExpiryTime field.- Returns:
- AbsoluteExpiryTime
-
setAbsoluteExpiryTime
public void setAbsoluteExpiryTime(AMQPTimestamp absoluteExpiryTime)
Sets the optional AbsoluteExpiryTime field.- Parameters:
absoluteExpiryTime
- AbsoluteExpiryTime
-
getCreationTime
public AMQPTimestamp getCreationTime()
Returns the optional CreationTime field.- Returns:
- CreationTime
-
setCreationTime
public void setCreationTime(AMQPTimestamp creationTime)
Sets the optional CreationTime field.- Parameters:
creationTime
- CreationTime
-
getGroupId
public AMQPString getGroupId()
Returns the optional GroupId field.- Returns:
- GroupId
-
setGroupId
public void setGroupId(AMQPString groupId)
Sets the optional GroupId field.- Parameters:
groupId
- GroupId
-
getGroupSequence
public SequenceNo getGroupSequence()
Returns the optional GroupSequence field.- Returns:
- GroupSequence
-
setGroupSequence
public void setGroupSequence(SequenceNo groupSequence)
Sets the optional GroupSequence field.- Parameters:
groupSequence
- GroupSequence
-
getReplyToGroupId
public AMQPString getReplyToGroupId()
Returns the optional ReplyToGroupId field.- Returns:
- ReplyToGroupId
-
setReplyToGroupId
public void setReplyToGroupId(AMQPString replyToGroupId)
Sets the optional ReplyToGroupId field.- Parameters:
replyToGroupId
- ReplyToGroupId
-
getPredictedSize
public int getPredictedSize()
Returns the predicted size of this Properties. The predicted size may be greater than the actual size but it can never be less.- Specified by:
getPredictedSize
in interfaceSectionIF
- Overrides:
getPredictedSize
in classAMQPList
- Returns:
- predicted size
-
getArrayConstructor
public AMQPDescribedConstructor getArrayConstructor() throws java.io.IOException
Returns an array constructor (internal use)- Returns:
- array constructor
- Throws:
java.io.IOException
-
writeContent
public void writeContent(java.io.DataOutput out) throws java.io.IOException
Description copied from class:AMQPType
Write the content of this type to a DataOutput.- Overrides:
writeContent
in classAMQPList
- Parameters:
out
- DataOutput- Throws:
java.io.IOException
- on error
-
getValueString
public java.lang.String getValueString()
Description copied from class:AMQPType
Returns the value string representation of the type.- Specified by:
getValueString
in interfaceSectionIF
- Overrides:
getValueString
in classAMQPList
- Returns:
- value string
-
-