| java.lang.Object com.quadcap.pop3.client.UidlEntry
UidlEntry | public class UidlEntry implements java.io.Serializable(Code) | | This class holds a single UIDL entry in the Pop3 agent's UIDL map.
Each entry corresponds to a message on the server -- we'll rememember
the date we first saw the message, so we can know when to delete it.
author: Stan Bailes |
Constructor Summary | |
public | UidlEntry(String uidl, int messageNumber, Date firstSeen) Construct a new UidlEntry from the specified parameters.
Parameters: uidl - the POP3 UIDL string returned from the server. Parameters: messageNumber - the POP# message number returned from the server. Parameters: firstSeen - the date when this message was first seen, usually thedate when the UidlEntry object for that message is firstconstructed, i.e. | public | UidlEntry(String s) |
Method Summary | |
public Date | getFirstSeen() Get the date this message was first seen. | public int | getMessageNumber() Get the POP3 message number
the POP3 message number, returned e.g. | public String | getUidl() Get the uidl string. | public void | setMessageNumber(int num) Set the POP3 message number.
Parameters: num - the new POP3 message number. | public String | toString() Return a human-readable version of this UidlEntry object. |
markedForDeletion | public transient boolean markedForDeletion(Code) | | |
messageNumber | int messageNumber(Code) | | |
UidlEntry | public UidlEntry(String uidl, int messageNumber, Date firstSeen)(Code) | | Construct a new UidlEntry from the specified parameters.
Parameters: uidl - the POP3 UIDL string returned from the server. Parameters: messageNumber - the POP# message number returned from the server. Parameters: firstSeen - the date when this message was first seen, usually thedate when the UidlEntry object for that message is firstconstructed, i.e. 'now'. |
getFirstSeen | public Date getFirstSeen()(Code) | | Get the date this message was first seen.
the first seen date. |
getMessageNumber | public int getMessageNumber()(Code) | | Get the POP3 message number
the POP3 message number, returned e.g. by the LIST command. |
getUidl | public String getUidl()(Code) | | Get the uidl string.
the uidl string for this message. |
setMessageNumber | public void setMessageNumber(int num)(Code) | | Set the POP3 message number.
Parameters: num - the new POP3 message number. This is set in subsequentsessions, where a message has the same UIDL, but due tointervening deletions has a new message number. |
toString | public String toString()(Code) | | Return a human-readable version of this UidlEntry object.
a string representing this UidlEntry |
|
|