public class LookupDest extends Object
| Modifier | Constructor and Description |
|---|---|
protected | LookupDest(I2PAppContext context)Create a new LookupDest instance. |
| Modifier and Type | Method and Description |
|---|---|
(package private) static Destination | lookupBase32Hash(I2PAppContext ctx,
String key)Look up a destination by Base32 hash. |
(package private) static Destination | lookupHostname(I2PAppContext ctx,
String hostname)Any hostname, but this is for long-format b32 |
static void | main(String[] args)Supports hostnames and extended b32. |
protected LookupDest(I2PAppContext context)
context - contextstatic Destination lookupBase32Hash(I2PAppContext ctx, String key) throws I2PSessionException
ctx - the application contextkey - 52 chars (do not include the .b32.i2p suffix)I2PSessionException - if there is an I2CP errorstatic Destination lookupHostname(I2PAppContext ctx, String hostname) throws I2PSessionException
ctx - the contexthostname - a "b33" hostname, 64+ chars ending with ".b32.i2p"I2PSessionExceptionpublic static void main(String[] args)
args - command line arguments