|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infoservice.tor.TorDirectoryServerUrl
public class TorDirectoryServerUrl
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 |
---|
private java.lang.String m_host
private int m_port
private java.lang.String m_fileName
Constructor Detail |
---|
public TorDirectoryServerUrl(java.lang.String a_host, int a_port, java.lang.String a_fileName)
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 |
---|
public java.lang.String getHost()
public int getPort()
public java.lang.String getFileName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |