public abstract class AbstractSessionFactoryBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.helger.commons.collection.impl.ICommonsMap<String,String> |
m_aConfig |
protected com.jcraft.jsch.JSch |
m_aJsch |
protected com.jcraft.jsch.Proxy |
m_aProxy |
protected com.jcraft.jsch.UserInfo |
m_aUserInfo |
protected int |
m_nPort |
protected String |
m_sHostname |
protected String |
m_sUsername |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSessionFactoryBuilder(com.jcraft.jsch.JSch jsch,
String username,
String hostname,
int port,
com.jcraft.jsch.Proxy proxy,
com.helger.commons.collection.impl.ICommonsMap<String,String> config,
com.jcraft.jsch.UserInfo userInfo) |
| Modifier and Type | Method and Description |
|---|---|
abstract ISessionFactory |
build()
Builds and returns a the new
SessionFactory instance. |
AbstractSessionFactoryBuilder |
setConfig(com.helger.commons.collection.impl.ICommonsMap<String,String> config)
Replaces the current config with
config |
AbstractSessionFactoryBuilder |
setHostname(String hostname)
Replaces the current hostname with
hostname |
AbstractSessionFactoryBuilder |
setPort(int port)
Replaces the current port with
port |
AbstractSessionFactoryBuilder |
setProxy(com.jcraft.jsch.Proxy proxy)
Replaces the current proxy with
proxy |
AbstractSessionFactoryBuilder |
setUserInfo(com.jcraft.jsch.UserInfo userInfo)
Replaces the current userInfo with
userInfo |
AbstractSessionFactoryBuilder |
setUsername(String username)
Replaces the current username with
username |
protected String m_sHostname
protected com.jcraft.jsch.JSch m_aJsch
protected int m_nPort
protected com.jcraft.jsch.Proxy m_aProxy
protected String m_sUsername
protected com.jcraft.jsch.UserInfo m_aUserInfo
@Nonnull public AbstractSessionFactoryBuilder setConfig(@Nullable com.helger.commons.collection.impl.ICommonsMap<String,String> config)
configconfig - The new configDefaultSessionFactory.setConfig(ICommonsMap)@Nonnull public AbstractSessionFactoryBuilder setHostname(@Nullable String hostname)
hostnamehostname - The new hostname@Nonnull public AbstractSessionFactoryBuilder setPort(int port)
portport - The new port@Nonnull public AbstractSessionFactoryBuilder setProxy(@Nullable com.jcraft.jsch.Proxy proxy)
proxyproxy - The new proxyDefaultSessionFactory.setProxy(Proxy)@Nonnull public AbstractSessionFactoryBuilder setUsername(@Nullable String username)
usernameusername - The new username@Nonnull public AbstractSessionFactoryBuilder setUserInfo(@Nullable com.jcraft.jsch.UserInfo userInfo)
userInfouserInfo - The new userInfo@Nonnull public abstract ISessionFactory build()
SessionFactory instance.SessionFactoryCopyright © 2020 Philip Helger. All rights reserved.