|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.krakenapps.filter.MessageBuilder
public class MessageBuilder
Builds a message of specific message specification. This class is for convenience.
| Constructor Summary | |
|---|---|
MessageBuilder(MessageSpec spec)
Prepare a builder of specific message specification. |
|
| Method Summary | |
|---|---|
Message |
build()
Creates a message instance. |
MessageBuilder |
set(java.lang.String key,
java.lang.Object value)
Sets a property |
MessageBuilder |
setBase(Message message)
Copy from the other message |
MessageBuilder |
setHeader(java.lang.String key,
java.lang.Object value)
Sets a header |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageBuilder(MessageSpec spec)
spec - the message specification| Method Detail |
|---|
public MessageBuilder setBase(Message message)
message - the source message
public MessageBuilder set(java.lang.String key,
java.lang.Object value)
key - the name of the propertyvalue - the value of the property
public MessageBuilder setHeader(java.lang.String key,
java.lang.Object value)
key - the name of the headervalue - the value of the header
public Message build()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||