|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap
com.orderlysoftware.orderlycalls.base.Message
public class Message
This class represents an ordered set of key-value Pairs, with an option amount of free-text data, suitable for use with Asterisk's Manager API.
The iteration order is the order in which keys were added.
| Constructor Summary | |
|---|---|
Message()
|
|
| Method Summary | |
|---|---|
void |
addPair(Pair pair)
Convenience method to add a key-value Pair. |
void |
addPair(java.lang.String key,
java.lang.String value)
Another convenience method for adding a key-value pair. |
java.lang.StringBuffer |
getFreeform()
Gets freeform (unpaired) data associated with this message. |
java.lang.String |
getValue(java.lang.String key)
Gets a particular value. |
boolean |
isComplete()
Tests whether this message is complete. |
void |
setComplete(boolean complete)
Indicates that this message is finished. |
void |
setFreeform(java.lang.StringBuffer freeform)
Messages may be accompanied by data that does not conform to the "key: value" format. |
java.lang.String |
toString()
Returns a string that is a list of "key: value" pairs, terminated by a blank line. |
| Methods inherited from class java.util.LinkedHashMap |
|---|
clear, containsValue, get, removeEldestEntry |
| Methods inherited from class java.util.HashMap |
|---|
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
| Constructor Detail |
|---|
public Message()
| Method Detail |
|---|
public void addPair(Pair pair)
pair - The Pair to add.public java.lang.String getValue(java.lang.String key)
key -
public java.lang.String toString()
toString in class java.util.AbstractMap
public void addPair(java.lang.String key,
java.lang.String value)
key - value - public java.lang.StringBuffer getFreeform()
"key: value" format.public boolean isComplete()
public void setComplete(boolean complete)
complete - The complete to set.public void setFreeform(java.lang.StringBuffer freeform)
"key: value" format.
freeform - Freeform data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||