mail.communication
Class ReplyList

java.lang.Object
  extended by mail.communication.ReplyList

public class ReplyList
extends java.lang.Object

this class manages the replies gotten to requests TODO: handle not fetched replies

Author:
Arne Müller

Nested Class Summary
 class ReplyList.TimeoutException
           
 
Field Summary
(package private)  java.util.Hashtable<java.lang.String,CPackage> replies
           
static int TIMEOUT
           
 
Constructor Summary
ReplyList()
           
 
Method Summary
 void addReply(java.lang.String id, CPackage c)
           
 CPackage fetchReply(java.lang.String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TIMEOUT

public static int TIMEOUT

replies

java.util.Hashtable<java.lang.String,CPackage> replies
Constructor Detail

ReplyList

public ReplyList()
Method Detail

addReply

public void addReply(java.lang.String id,
                     CPackage c)

fetchReply

public CPackage fetchReply(java.lang.String id)
                    throws ReplyList.TimeoutException
Throws:
ReplyList.TimeoutException