public interface ClientSessionCreator
| Modifier and Type | Field and Description |
|---|---|
static AttributeRepository.AttributeKey<SshdSocketAddress> |
TARGET_SERVER |
| Modifier and Type | Method and Description |
|---|---|
default ConnectFuture |
connect(HostConfigEntry hostConfig) |
default ConnectFuture |
connect(HostConfigEntry hostConfig,
AttributeRepository context) |
ConnectFuture |
connect(HostConfigEntry hostConfig,
AttributeRepository context,
SocketAddress localAddress) |
default ConnectFuture |
connect(HostConfigEntry hostConfig,
SocketAddress localAddress) |
ConnectFuture |
connect(String uri)
Resolves the effective
HostConfigEntry and connects to it |
default ConnectFuture |
connect(String username,
SocketAddress address)
Resolves the effective
HostConfigEntry and connects to it |
default ConnectFuture |
connect(String username,
SocketAddress address,
AttributeRepository context)
Resolves the effective
HostConfigEntry and connects to it |
ConnectFuture |
connect(String username,
SocketAddress targetAddress,
AttributeRepository context,
SocketAddress localAddress)
Resolves the effective
HostConfigEntry and connects to it |
default ConnectFuture |
connect(String username,
SocketAddress targetAddress,
SocketAddress localAddress)
Resolves the effective
HostConfigEntry and connects to it |
default ConnectFuture |
connect(String username,
String host,
int port)
Resolves the effective
HostConfigEntry and connects to it |
default ConnectFuture |
connect(String username,
String host,
int port,
AttributeRepository context)
Resolves the effective
HostConfigEntry and connects to it |
ConnectFuture |
connect(String username,
String host,
int port,
AttributeRepository context,
SocketAddress localAddress)
Resolves the effective
HostConfigEntry and connects to it |
default ConnectFuture |
connect(String username,
String host,
int port,
SocketAddress localAddress)
Resolves the effective
HostConfigEntry and connects to it |
static final AttributeRepository.AttributeKey<SshdSocketAddress> TARGET_SERVER
ConnectFuture connect(String uri) throws IOException
HostConfigEntry and connects to ituri - The server uri to connect toConnectFutureIOException - If failed to resolve the effective target or connect to itconnect(HostConfigEntry)default ConnectFuture connect(String username, String host, int port) throws IOException
HostConfigEntry and connects to itusername - The intended usernamehost - The target host name/address - never null/emptyport - The target portConnectFutureIOException - If failed to resolve the effective target or connect to itconnect(HostConfigEntry)default ConnectFuture connect(String username, String host, int port, AttributeRepository context) throws IOException
HostConfigEntry and connects to itusername - The intended usernamehost - The target host name/address - never null/emptyport - The target portcontext - An optional "context" to be attached to the established session if successfully
connectedConnectFutureIOException - If failed to resolve the effective target or connect to itdefault ConnectFuture connect(String username, String host, int port, SocketAddress localAddress) throws IOException
HostConfigEntry and connects to itusername - The intended usernamehost - The target host name/address - never null/emptyport - The target portlocalAddress - The local address to use - if null an automatic ephemeral port and bind address is
usedConnectFutureIOException - If failed to resolve the effective target or connect to itconnect(HostConfigEntry)ConnectFuture connect(String username, String host, int port, AttributeRepository context, SocketAddress localAddress) throws IOException
HostConfigEntry and connects to itusername - The intended usernamehost - The target host name/address - never null/emptyport - The target portcontext - An optional "context" to be attached to the established session if successfully
connectedlocalAddress - The local address to use - if null an automatic ephemeral port and bind address is
usedConnectFutureIOException - If failed to resolve the effective target or connect to itdefault ConnectFuture connect(String username, SocketAddress address) throws IOException
HostConfigEntry and connects to itusername - The intended usernameaddress - The intended SocketAddress - never null. If this is an
InetSocketAddress then the effective HostConfigEntry is
resolved and used.ConnectFutureIOException - If failed to resolve the effective target or connect to itconnect(HostConfigEntry)default ConnectFuture connect(String username, SocketAddress address, AttributeRepository context) throws IOException
HostConfigEntry and connects to itusername - The intended usernameaddress - The intended SocketAddress - never null. If this is an
InetSocketAddress then the effective HostConfigEntry is
resolved and used.context - An optional "context" to be attached to the established session if successfully
connectedConnectFutureIOException - If failed to resolve the effective target or connect to itdefault ConnectFuture connect(String username, SocketAddress targetAddress, SocketAddress localAddress) throws IOException
HostConfigEntry and connects to itusername - The intended usernametargetAddress - The intended target SocketAddress - never null. If this is an
InetSocketAddress then the effective HostConfigEntry is
resolved and used.localAddress - The local address to use - if null an automatic ephemeral port and bind address is
usedConnectFutureIOException - If failed to resolve the effective target or connect to itconnect(HostConfigEntry)ConnectFuture connect(String username, SocketAddress targetAddress, AttributeRepository context, SocketAddress localAddress) throws IOException
HostConfigEntry and connects to itusername - The intended usernametargetAddress - The intended target SocketAddress - never null. If this is an
InetSocketAddress then the effective HostConfigEntry is
resolved and used.context - An optional "context" to be attached to the established session if successfully
connectedlocalAddress - The local address to use - if null an automatic ephemeral port and bind address is
usedConnectFutureIOException - If failed to resolve the effective target or connect to itdefault ConnectFuture connect(HostConfigEntry hostConfig) throws IOException
hostConfig - The effective HostConfigEntry to connect to - never nullConnectFutureIOException - If failed to create the connection futuredefault ConnectFuture connect(HostConfigEntry hostConfig, AttributeRepository context) throws IOException
hostConfig - The effective HostConfigEntry to connect to - never nullcontext - An optional "context" to be attached to the established session if successfully
connectedConnectFutureIOException - If failed to create the connection futuredefault ConnectFuture connect(HostConfigEntry hostConfig, SocketAddress localAddress) throws IOException
hostConfig - The effective HostConfigEntry to connect to - never nulllocalAddress - The local address to use - if null an automatic ephemeral port and bind address is
usedConnectFutureIOException - If failed to create the connection futureConnectFuture connect(HostConfigEntry hostConfig, AttributeRepository context, SocketAddress localAddress) throws IOException
hostConfig - The effective HostConfigEntry to connect to - never nullcontext - An optional "context" to be attached to the established session if successfully
connectedlocalAddress - The local address to use - if null an automatic ephemeral port and bind address is
usedConnectFutureIOException - If failed to create the connection futureCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.