Methods Summary |
---|
public java.util.Iterator | list()
return messages.keySet().iterator(); // trivial implementation
|
public boolean | lock(java.lang.String key)
return false; // trivial implementation
|
public void | remove(org.apache.mailet.Mail mail)
messages.remove(mail.getName());
|
public void | remove(java.util.Collection mails)
for (Iterator i = mails.iterator(); i.hasNext(); ) {
Mail m = (Mail) i.next();
messages.remove(m.getName());
}
|
public void | remove(java.lang.String key)
messages.remove(key);
|
public org.apache.mailet.Mail | retrieve(java.lang.String key)
Mail m2 = new MailImpl((Mail) messages.get(key),key);
m2.setState(((Mail) messages.get(key)).getState());
return m2; // trivial implementation
|
public void | store(org.apache.mailet.Mail mc)
MailImpl m = new MailImpl(mc,mc.getName());
m.setState(mc.getState());
this.messages.put(mc.getName(),m);
|
public boolean | unlock(java.lang.String key)
return false; // trivial implementation
|