Class EepGetNamingService

  extended by net.i2p.client.naming.NamingService
      extended by net.i2p.client.naming.EepGetNamingService
Direct Known Subclasses:

public class EepGetNamingService
extends NamingService

A network-based naming service using HTTP, with in-memory caching. Fetches from one or more remote (in-i2p) CGI services using HTTP GET. The remote HTTP service takes a CGI parameter and must return (only) the 516-byte Base64 destination, or hostname=dest. A trailing \n or \r\n is acceptable. Should be used from MetaNamingService, after HostsTxtNamingService. Cannot be used as the only NamingService! Be sure any naming service hosts are in hosts.txt. Sample config to put in configadvanced.jsp (restart required): i2p.naming.impl=net.i2p.client.naming.MetaNamingService i2p.nameservicelist=net.i2p.client.naming.HostsTxtNamingService,net.i2p.client.naming.EepGetNamingService i2p.naming.eepget.list=http://namingservice.i2p/cgi-bin/lkup.cgi?host=,http://i2host.i2p/cgi-bin/i2hostquery?

Field Summary
Fields inherited from class net.i2p.client.naming.NamingService
Constructor Summary
EepGetNamingService(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.
Methods inherited from class net.i2p.client.naming.NamingService
createInstance, getCache, lookupBase64, putCache, reverseLookup, reverseLookup
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public EepGetNamingService(I2PAppContext context)
The naming service should only be constructed and accessed through the application context. This constructor should only be used by the appropriate application context itself.

Method Detail


public Destination lookup(java.lang.String hostname)
Description copied from class: NamingService
Look up a host name.

Specified by:
lookup in class NamingService
the Destination for this host name, or null if name is unknown.