|
Spring AMQP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.amqp.support.converter.AbstractMessageConverter
public abstract class AbstractMessageConverter
Convenient base class for MessageConverter implementations.
| Constructor Summary | |
|---|---|
AbstractMessageConverter()
|
|
| Method Summary | |
|---|---|
protected abstract Message |
createMessage(Object object,
MessageProperties messageProperties)
Crate a message from the payload object and message properties provided. |
abstract Object |
fromMessage(Message message)
Convert from a Message to a Java object. |
protected boolean |
isCreateMessageIds()
Flag to indicate that new messages should have unique identifiers added to their properties before sending. |
void |
setCreateMessageIds(boolean createMessageIds)
Flag to indicate that new messages should have unique identifiers added to their properties before sending. |
Message |
toMessage(Object object,
MessageProperties messageProperties)
Convert a Java object to a Message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractMessageConverter()
| Method Detail |
|---|
public void setCreateMessageIds(boolean createMessageIds)
createMessageIds - the flag value to setprotected boolean isCreateMessageIds()
public final Message toMessage(Object object,
MessageProperties messageProperties)
throws MessageConversionException
MessageConverter
toMessage in interface MessageConverterobject - the object to convert
MessageConversionException - in case of conversion failure
protected abstract Message createMessage(Object object,
MessageProperties messageProperties)
object - the payloadmessageProperties - the message properties (headers)
public abstract Object fromMessage(Message message)
throws MessageConversionException
MessageConverter
fromMessage in interface MessageConvertermessage - the message to convert
MessageConversionException - in case of conversion failure
|
Spring AMQP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||