public class HostsTxtNamingService extends MetaNamingService
| 修飾子とタイプ | フィールド | 説明 |
|---|---|---|
static java.lang.String |
DEFAULT_HOSTS_FILE |
default hosts.txt filenames
|
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
|
BASE32_HASH_LENGTH, CACHE_MAX_SIZE, DEST_SIZE, PROP_B32_services_context, _listeners, _log, _updaters, PROP_IMPL| コンストラクタ | 説明 |
|---|---|
HostsTxtNamingService(I2PAppContext context) |
The naming service should only be constructed and accessed through the
application context.
|
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
java.util.Set<java.lang.String> |
getNames(java.util.Properties options) |
All services aggregated, unless options contains
the property "file", in which case only for that file
|
Destination |
lookup(java.lang.String hostname,
java.util.Properties lookupOptions,
java.util.Properties storedOptions) |
Same as lookup(hostname) but with in and out options
Note that whether this (and lookup(hostname)) resolve Base 32 addresses
in the form {52 chars}.b32.i2p is NamingService-specific.
|
boolean |
put(java.lang.String hostname,
Destination d,
java.util.Properties options) |
Stores in the last service
|
boolean |
putIfAbsent(java.lang.String hostname,
Destination d,
java.util.Properties options) |
Stores in the last service
|
boolean |
remove(java.lang.String hostname,
java.util.Properties options) |
Removes from all services
|
clearCache, getCache, putCache, removeCacheaddNamingService, export, getBase64Entries, getEntries, getNamingServices, registerListener, removeNamingService, reverseLookup, shutdown, size, unregisterListeneraddDestination, addDestination, addNamingService, createInstance, export, getConfiguration, getEntries, getName, getNames, getParent, lookup, lookup, lookupAll, lookupAll, lookupBase32, lookupBase64, put, putAll, putIfAbsent, registerUpdater, remove, remove, remove, requestUpdate, reverseLookup, reverseLookup, reverseLookupAll, reverseLookupAll, reverseLookupAll, setConfiguration, size, start, toString, unregisterUpdater, updatepublic static final java.lang.String PROP_HOSTS_FILE
public static final java.lang.String DEFAULT_HOSTS_FILE
public HostsTxtNamingService(I2PAppContext context)
public Destination lookup(java.lang.String hostname, java.util.Properties lookupOptions, java.util.Properties storedOptions)
NamingServicelookup クラス内 MetaNamingServicehostname - mixed case as it could be a keylookupOptions - input parameter, NamingService-specific, can be nullstoredOptions - output parameter, NamingService-specific, any stored properties will be added if non-nullpublic boolean put(java.lang.String hostname,
Destination d,
java.util.Properties options)
MetaNamingServiceput クラス内 MetaNamingServiceoptions - NamingService-specific, can be nullpublic boolean putIfAbsent(java.lang.String hostname,
Destination d,
java.util.Properties options)
MetaNamingServiceputIfAbsent クラス内 MetaNamingServiceoptions - NamingService-specific, can be nullpublic boolean remove(java.lang.String hostname,
java.util.Properties options)
MetaNamingServiceremove クラス内 MetaNamingServiceoptions - NamingService-specific, can be nullpublic java.util.Set<java.lang.String> getNames(java.util.Properties options)
getNames クラス内 MetaNamingServiceoptions - NamingService-specific, can be null