org.gudy.azureus2.pluginsimpl.local.clientid
Class ClientIDManagerImpl

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.clientid.ClientIDManagerImpl
All Implemented Interfaces:
ClientIDManager

public class ClientIDManagerImpl
extends Object
implements ClientIDManager

Author:
parg

Nested Class Summary
protected  class ClientIDManagerImpl.httpFilter
           
 
Field Summary
protected static char CR
           
protected static char FF
           
protected static String NL
           
protected static ClientIDManagerImpl singleton
           
 
Constructor Summary
ClientIDManagerImpl()
           
 
Method Summary
 void generateHTTPProperties(byte[] hash, Properties properties)
           
 byte[] generatePeerID(byte[] hash, boolean for_tracker)
           
 ClientIDGenerator getGenerator()
           
 Object getProperty(byte[] hash, String property_name)
           
static ClientIDManagerImpl getSingleton()
           
 void setGenerator(ClientIDGenerator _generator, boolean _use_filter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singleton

protected static ClientIDManagerImpl singleton

CR

protected static final char CR
See Also:
Constant Field Values

FF

protected static final char FF
See Also:
Constant Field Values

NL

protected static final String NL
See Also:
Constant Field Values
Constructor Detail

ClientIDManagerImpl

public ClientIDManagerImpl()
Method Detail

getSingleton

public static ClientIDManagerImpl getSingleton()

setGenerator

public void setGenerator(ClientIDGenerator _generator,
                         boolean _use_filter)

getGenerator

public ClientIDGenerator getGenerator()
Specified by:
getGenerator in interface ClientIDManager

generatePeerID

public byte[] generatePeerID(byte[] hash,
                             boolean for_tracker)
                      throws ClientIDException
Throws:
ClientIDException

getProperty

public Object getProperty(byte[] hash,
                          String property_name)

generateHTTPProperties

public void generateHTTPProperties(byte[] hash,
                                   Properties properties)
                            throws ClientIDException
Throws:
ClientIDException