rero.dcc
Class DataDCC

java.lang.Object
  extended byrero.dcc.DataDCC

public class DataDCC
extends Object


Field Summary
protected  HashMap connectionCache
           
protected static List dccList
           
protected static HashMap resumeData
           
 
Constructor Summary
DataDCC()
           
 
Method Summary
 void addConnection(String port, GenericDCC dcc)
          used by the resume stuff
 void closeChat(String nickname)
           
 void closeConnection(String nickname)
           
 void closeConnection(String nickname, int type)
           
 Iterator getActiveConnections()
           
 List getAllConnections()
           
 Iterator getClosedConnections()
           
 GenericDCC getConnection(String port)
           
 GenericDCC getConnectionFromHash(String hash)
           
 LinkedList getConnections(Collection dccCollection, int type, int state)
           
 LinkedList getConnections(int type, int state)
           
 GenericDCC getConnectionToAccept(String nickname)
           
 ProtocolDCC getSpecificConnection(String nickname, int type)
           
 GenericDCC getUserConnection(Collection dccCollection, String nickname)
           
 Iterator getWaitingConnections()
           
 void removeConnection(GenericDCC dcc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dccList

protected static List dccList

resumeData

protected static HashMap resumeData

connectionCache

protected HashMap connectionCache
Constructor Detail

DataDCC

public DataDCC()
Method Detail

addConnection

public void addConnection(String port,
                          GenericDCC dcc)
used by the resume stuff


getConnections

public LinkedList getConnections(int type,
                                 int state)

getConnections

public LinkedList getConnections(Collection dccCollection,
                                 int type,
                                 int state)

getAllConnections

public List getAllConnections()

getConnectionFromHash

public GenericDCC getConnectionFromHash(String hash)

getActiveConnections

public Iterator getActiveConnections()

getWaitingConnections

public Iterator getWaitingConnections()

getClosedConnections

public Iterator getClosedConnections()

getUserConnection

public GenericDCC getUserConnection(Collection dccCollection,
                                    String nickname)

getConnection

public GenericDCC getConnection(String port)

getConnectionToAccept

public GenericDCC getConnectionToAccept(String nickname)

closeConnection

public void closeConnection(String nickname)

closeConnection

public void closeConnection(String nickname,
                            int type)

closeChat

public void closeChat(String nickname)

removeConnection

public void removeConnection(GenericDCC dcc)

getSpecificConnection

public ProtocolDCC getSpecificConnection(String nickname,
                                         int type)