public class ConfigFileHostEntryResolver extends ModifiableFileWatcher implements HostConfigEntryResolver
options, STRICTLY_PROHIBITED_FILE_PERMISSIONlogEMPTY| Constructor and Description |
|---|
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,
String proxyJump) |
HostConfigEntry |
resolveEffectiveHost(String host,
int port,
SocketAddress localAddress,
String username,
String proxyJump,
AttributeRepository context)
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,
String proxyJump) |
checkReloadRequired, exists, getPath, lastModified, resetReloadAttributes, size, toPathResource, toPathResource, toString, updateReloadAttributes, validateStrictConfigFilePermissionspublic ConfigFileHostEntryResolver(Path file)
public ConfigFileHostEntryResolver(Path file, LinkOption... options)
public HostConfigEntry resolveEffectiveHost(String host, int port, SocketAddress localAddress, String username, String proxyJump, AttributeRepository context) throws IOException
HostConfigEntryResolverresolveEffectiveHost in interface HostConfigEntryResolverhost - The requested host - never null/emptyport - The requested portlocalAddress - Optional binding endpoint for the local peerusername - The requested usernameproxyJump - The requested proxyJumpcontext - An optional "context" provided during the connection request (to be attached to
the established session if successfully connected)HostConfigEntry 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, String proxyJump) throws IOException
IOExceptionprotected List<HostConfigEntry> reloadHostConfigEntries(Path path, String host, int port, String username, String proxyJump) throws IOException
IOExceptionCopyright © 2018–2021 The Apache Software Foundation. All rights reserved.