public class FilesystemConfiguration extends Configuration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTO_UPDATE_ROOT_INFO |
static java.lang.String |
PREFERRED_GLOBAL_SERVICE_HANDLE |
static java.lang.String |
SITE_FILTER_KEYWORDS_ATT_NAME |
RM_GLOBAL, RM_WITH_CACHE
Constructor and Description |
---|
FilesystemConfiguration(java.io.File configDir) |
Modifier and Type | Method and Description |
---|---|
void |
configureResolver(HandleResolver resolver) |
static void |
configureResolverUsingKeys(HandleResolver resolver,
net.cnri.util.StreamTable configTable) |
BootstrapHandles |
getBootstrapHandles() |
SiteInfo[] |
getCacheSites() |
java.io.File |
getConfigDir() |
static java.io.File |
getDefaultConfigDir() |
net.handle.hdllib.NamespaceInfo |
getGlobalNamespace() |
SiteInfo[] |
getGlobalSites() |
HandleValue[] |
getGlobalValues() |
java.util.Map |
getLocalAddressMap()
Gets the mapping of addresses to local addresses
|
SiteInfo[] |
getLocalSites(java.lang.String na) |
java.lang.String |
getPreferredGlobalServiceHandle() |
int |
getResolutionMethod() |
java.util.List<java.security.PublicKey> |
getRootKeys() |
boolean |
isAutoUpdateRootInfo() |
java.net.InetAddress |
mapLocalAddress(java.net.InetAddress addr)
If the given address appears in the local address map return the address to which it is mapped.
|
void |
persist()
save the default global values in the users' config directory
|
void |
saveLocalAddressMap()
Saves the local address map to the appropriate configuration file
|
void |
setAutoUpdateRootInfo(boolean enabled) |
void |
setBootstrapHandles(BootstrapHandles bootstrapHandles) |
void |
setCacheSites(SiteInfo[] cacheSites) |
void |
setConfigDir(java.io.File newConfigDir) |
void |
setGlobalSites(SiteInfo[] globalSites) |
void |
setGlobalValues(HandleValue[] globalValues)
Deprecated.
|
void |
setGlobalValuesFile(java.io.File newGlobalValuesFile) |
void |
setLocalAddressMap(java.util.Map localAddrMap)
Sets a map that converts IP addresses to alternate addresses.
|
void |
setLocalSites(java.lang.String na,
SiteInfo[] sites) |
void |
setResolutionMethod(int resolutionMethod) |
void |
setRootKeys(java.util.List<java.security.PublicKey> rootKeys) |
addRootInfoListener, checkRootInfoUpToDate, defaultConfiguration, getLocalSites, isBootstrapHandlesOld, notifyRootInfoOutdated, removeRootInfoListener, setLocalSites, startAutoUpdate
public static final java.lang.String AUTO_UPDATE_ROOT_INFO
public static final java.lang.String PREFERRED_GLOBAL_SERVICE_HANDLE
public static final java.lang.String SITE_FILTER_KEYWORDS_ATT_NAME
public static java.io.File getDefaultConfigDir()
public void configureResolver(HandleResolver resolver)
configureResolver
in class Configuration
public static void configureResolverUsingKeys(HandleResolver resolver, net.cnri.util.StreamTable configTable)
public void setLocalSites(java.lang.String na, SiteInfo[] sites)
setLocalSites
in class Configuration
public void setLocalAddressMap(java.util.Map localAddrMap)
setLocalAddressMap
in class Configuration
public void saveLocalAddressMap() throws java.io.IOException
saveLocalAddressMap
in class Configuration
java.io.IOException
public java.util.Map getLocalAddressMap()
getLocalAddressMap
in class Configuration
public java.net.InetAddress mapLocalAddress(java.net.InetAddress addr)
mapLocalAddress
in class Configuration
public SiteInfo[] getLocalSites(java.lang.String na)
getLocalSites
in class Configuration
@Deprecated public void setGlobalValues(HandleValue[] globalValues)
setGlobalValues
in class Configuration
public void setGlobalValuesFile(java.io.File newGlobalValuesFile)
public void setBootstrapHandles(BootstrapHandles bootstrapHandles)
setBootstrapHandles
in class Configuration
public void persist()
persist
in class Configuration
public void setConfigDir(java.io.File newConfigDir)
public java.io.File getConfigDir()
public HandleValue[] getGlobalValues()
getGlobalValues
in class Configuration
public net.handle.hdllib.NamespaceInfo getGlobalNamespace()
getGlobalNamespace
in class Configuration
public void setGlobalSites(SiteInfo[] globalSites)
setGlobalSites
in class Configuration
public SiteInfo[] getGlobalSites()
getGlobalSites
in class Configuration
public void setCacheSites(SiteInfo[] cacheSites)
setCacheSites
in class Configuration
public SiteInfo[] getCacheSites()
getCacheSites
in class Configuration
public int getResolutionMethod()
getResolutionMethod
in class Configuration
public void setResolutionMethod(int resolutionMethod)
setResolutionMethod
in class Configuration
public boolean isAutoUpdateRootInfo()
isAutoUpdateRootInfo
in class Configuration
public void setAutoUpdateRootInfo(boolean enabled)
setAutoUpdateRootInfo
in class Configuration
public java.lang.String getPreferredGlobalServiceHandle()
getPreferredGlobalServiceHandle
in class Configuration
public java.util.List<java.security.PublicKey> getRootKeys()
getRootKeys
in class Configuration
public void setRootKeys(java.util.List<java.security.PublicKey> rootKeys)
setRootKeys
in class Configuration
public BootstrapHandles getBootstrapHandles()
getBootstrapHandles
in class Configuration