|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.client.naming.NamingService
public abstract class NamingService
Naming services create a subclass of this class.
Field Summary | |
---|---|
protected I2PAppContext |
_context
|
static java.lang.String |
PROP_IMPL
what classname should be used as the naming service impl? |
Constructor Summary | |
---|---|
protected |
NamingService(I2PAppContext context)
The naming service should only be constructed and accessed through the application context. |
Method Summary | |
---|---|
static NamingService |
createInstance(I2PAppContext context)
Get a naming service instance. |
abstract Destination |
lookup(java.lang.String hostname)
Look up a host name. |
protected Destination |
lookupBase64(java.lang.String hostname)
Check if host name is valid Base64 encoded dest and return this dest in that case. |
abstract java.lang.String |
reverseLookup(Destination dest)
Reverse look up a destination |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected I2PAppContext _context
public static final java.lang.String PROP_IMPL
Constructor Detail |
---|
protected NamingService(I2PAppContext context)
Method Detail |
---|
public abstract Destination lookup(java.lang.String hostname)
null
if name is unknown.public abstract java.lang.String reverseLookup(Destination dest)
null
if none is known. It is safe for subclasses to always return
null
if no reverse lookup is possible.protected Destination lookupBase64(java.lang.String hostname)
public static final NamingService createInstance(I2PAppContext context)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |