|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.client.naming.NamingService
net.i2p.client.naming.HostsTxtNamingService
public class HostsTxtNamingService
A naming service based on the "hosts.txt" file.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_HOSTS_FILE
default hosts.txt filename |
static java.lang.String |
PROP_HOSTS_FILE
If this system property is specified, the tunnel will read the given file for hostname=destKey values when resolving names |
Fields inherited from class net.i2p.client.naming.NamingService |
---|
_context, PROP_IMPL |
Constructor Summary | |
---|---|
HostsTxtNamingService(I2PAppContext context)
The naming service should only be constructed and accessed through the application context. |
Method Summary | |
---|---|
Destination |
lookup(java.lang.String hostname)
Look up a host name. |
java.lang.String |
reverseLookup(Destination dest)
Reverse look up a destination |
Methods inherited from class net.i2p.client.naming.NamingService |
---|
createInstance, lookupBase64 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROP_HOSTS_FILE
public static final java.lang.String DEFAULT_HOSTS_FILE
Constructor Detail |
---|
public HostsTxtNamingService(I2PAppContext context)
Method Detail |
---|
public Destination lookup(java.lang.String hostname)
NamingService
lookup
in class NamingService
null
if name is unknown.public java.lang.String reverseLookup(Destination dest)
NamingService
reverseLookup
in class NamingService
null
if none is known. It is safe for subclasses to always return
null
if no reverse lookup is possible.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |