public class SshProxy extends Object implements com.jcraft.jsch.Proxy, AutoCloseable
| Constructor and Description |
|---|
SshProxy(ISessionFactory sessionFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connect(com.jcraft.jsch.SocketFactory socketFactory,
String host,
int port,
int timeout) |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
Socket |
getSocket() |
String |
toString() |
public SshProxy(@Nonnull ISessionFactory sessionFactory) throws com.jcraft.jsch.JSchException
com.jcraft.jsch.JSchExceptionpublic void close()
close in interface com.jcraft.jsch.Proxyclose in interface AutoCloseablepublic void connect(com.jcraft.jsch.SocketFactory socketFactory,
String host,
int port,
int timeout)
throws Exception
connect in interface com.jcraft.jsch.ProxyExceptionpublic InputStream getInputStream()
getInputStream in interface com.jcraft.jsch.Proxypublic OutputStream getOutputStream()
getOutputStream in interface com.jcraft.jsch.Proxypublic Socket getSocket()
getSocket in interface com.jcraft.jsch.ProxyCopyright © 2020 Philip Helger. All rights reserved.