public class ConfigFileHostEntryResolver extends ModifiableFileWatcher implements HostConfigEntryResolver
options, STRICTLY_PROHIBITED_FILE_PERMISSION
log
EMPTY
Constructor and Description |
---|
ConfigFileHostEntryResolver(File file) |
ConfigFileHostEntryResolver(Path file) |
ConfigFileHostEntryResolver(Path file,
LinkOption... options) |
Modifier and Type | Method and Description |
---|---|
protected List<HostConfigEntry> |
reloadHostConfigEntries(Path path,
String host,
int port,
String username) |
HostConfigEntry |
resolveEffectiveHost(String host,
int port,
String username)
Invoked when creating a new client session in order to allow for overriding
of the original parameters
|
protected HostConfigEntryResolver |
resolveEffectiveResolver(String host,
int port,
String username) |
checkReloadRequired, exists, getPath, lastModified, resetReloadAttributes, size, toString, updateReloadAttributes, validateStrictConfigFilePermissions
public ConfigFileHostEntryResolver(File file)
public ConfigFileHostEntryResolver(Path file)
public ConfigFileHostEntryResolver(Path file, LinkOption... options)
public HostConfigEntry resolveEffectiveHost(String host, int port, String username) throws IOException
HostConfigEntryResolver
resolveEffectiveHost
in interface HostConfigEntryResolver
host
- The requested host - never null
/emptyport
- The requested portusername
- The requested usernameHostConfigEntry
for the actual target - null
if use
original parameters. Note: if any identity files are attached to the
configuration then they must point to existing locations. This means
that any macros such as ~, %d, %h
, etc. must be resolved prior
to returning the valueIOException
- If failed to resolve the configurationprotected HostConfigEntryResolver resolveEffectiveResolver(String host, int port, String username) throws IOException
IOException
protected List<HostConfigEntry> reloadHostConfigEntries(Path path, String host, int port, String username) throws IOException
IOException
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.