dip.net.message
Class DefaultPressStore

java.lang.Object
  extended bydip.net.message.DefaultPressStore
All Implemented Interfaces:
PressStore

public class DefaultPressStore
extends java.lang.Object
implements PressStore

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

messages

protected java.util.List messages
Constructor Detail

DefaultPressStore

public DefaultPressStore()
Create a DefaultPressStore

Method Detail

getAllMessages

public PressMessage[] getAllMessages()
Get all Messages.

Specified by:
getAllMessages in interface PressStore

storeMessage

public void storeMessage(PressMessage pm)
Store a Message.

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.

Specified by:
storeMessage in interface PressStore


Copyright 2002-2004 Zachary DelProposto / jDip Development Team. All Rights Reserved.