|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dip.net.message.DefaultPressStore
A PressStore object is returned by the World object, and facilitates the storage and retrieval of Press messages.
Currently, messages may be saved or all messages may be retrieved. Support for the retrieval of select messages is not yet specified.
Field Summary | |
protected java.util.List |
messages
|
Constructor Summary | |
DefaultPressStore()
Create a DefaultPressStore |
Method Summary | |
PressMessage[] |
getAllMessages()
Get all Messages. |
void |
storeMessage(PressMessage pm)
Store a Message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.List messages
Constructor Detail |
public DefaultPressStore()
Method Detail |
public PressMessage[] getAllMessages()
getAllMessages
in interface PressStore
public void storeMessage(PressMessage pm)
This will replace a message already stored if the message fields from/to/subject/body/phase match. The read/reply to flags are ignored (and thus will be updated), as are sent/receive timestamps
Note that PressMessages are not serialized until the World object is serialized.
storeMessage
in interface PressStore
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |