infoservice.tor
Class TorDirectoryServerUrl

java.lang.Object
  extended by infoservice.tor.TorDirectoryServerUrl

public class TorDirectoryServerUrl
extends java.lang.Object

This is the implementation of the tor directory server structure, which holds the information how we can get the tor nodes list from the directory server (host, port of the server and HTTP filename of the nodes list).


Field Summary
private  java.lang.String m_fileName
          Stores the filename of the tor nodes list at the directory server (including the full path).
private  java.lang.String m_host
          Stores the host (IP or hostname) of the tor directory server.
private  int m_port
          Stores the port number of the tor directory server.
 
Constructor Summary
TorDirectoryServerUrl(java.lang.String a_host, int a_port, java.lang.String a_fileName)
          Creates a new TorDirectoryServerUrl.
 
Method Summary
 java.lang.String getFileName()
          Returns the filename of the tor nodes list at the tor directory server (a simple "/" for an original tor server or "/tornodes" at a JAP infoservice).
 java.lang.String getHost()
          Returns the host (hostname or IP) of the tor directory server.
 int getPort()
          Returns the port number of the tor directory server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_host

private java.lang.String m_host
Stores the host (IP or hostname) of the tor directory server.


m_port

private int m_port
Stores the port number of the tor directory server.


m_fileName

private java.lang.String m_fileName
Stores the filename of the tor nodes list at the directory server (including the full path).

Constructor Detail

TorDirectoryServerUrl

public TorDirectoryServerUrl(java.lang.String a_host,
                             int a_port,
                             java.lang.String a_fileName)
Creates a new TorDirectoryServerUrl.

Parameters:
a_host - The host (hostname or IP) of the tor directory server.
a_port - The port number of the tor directory server.
a_fileName - The filename of the tor nodes list at the tor directory server (including the full path).
Method Detail

getHost

public java.lang.String getHost()
Returns the host (hostname or IP) of the tor directory server.

Returns:
The tor directory server host.

getPort

public int getPort()
Returns the port number of the tor directory server.

Returns:
The tor directory server port number.

getFileName

public java.lang.String getFileName()
Returns the filename of the tor nodes list at the tor directory server (a simple "/" for an original tor server or "/tornodes" at a JAP infoservice).

Returns:
The HTTP filename of the tor nodes list at the tor directory server.