|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.tor.ordescription.PlainORListFetcher
public final class PlainORListFetcher
get descriptor and status documents from a directory server via HTTP
Field Summary | |
---|---|
private int |
m_ORListPort
|
private java.lang.String |
m_ORListServer
|
Constructor Summary | |
---|---|
PlainORListFetcher(java.lang.String addr,
int port)
Constructor |
Method Summary | |
---|---|
byte[] |
getAllDescriptors()
gets descriptors for all known ORs |
byte[] |
getDescriptor(java.lang.String digest)
gets descriptor for OR with given digest |
byte[] |
getDescriptorByFingerprint(java.lang.String fingerprint)
|
private byte[] |
getDocument(java.lang.String path)
fetch document from directory server |
byte[] |
getRouterStatus()
gets authoritive network-status |
byte[] |
getStatus(java.lang.String fingerprint)
gets network-status for host with given fingerprint |
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_ORListServer
private int m_ORListPort
Constructor Detail |
---|
public PlainORListFetcher(java.lang.String addr, int port)
addr
- address of the directory serverport
- port of the directory serverMethod Detail |
---|
public byte[] getRouterStatus()
ORListFetcher
getRouterStatus
in interface ORListFetcher
public byte[] getDescriptor(java.lang.String digest)
ORListFetcher
getDescriptor
in interface ORListFetcher
public byte[] getDescriptorByFingerprint(java.lang.String fingerprint)
getDescriptorByFingerprint
in interface ORListFetcher
public byte[] getAllDescriptors()
ORListFetcher
getAllDescriptors
in interface ORListFetcher
public byte[] getStatus(java.lang.String fingerprint)
ORListFetcher
getStatus
in interface ORListFetcher
private byte[] getDocument(java.lang.String path)
path
- path to document
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |