com.mindbright.ssh2
public class SSH2FTPProxyFilter extends java.lang.Object implements SSH2StreamFilter, SSH2StreamFilterFactory
| Modifier and Type | Field and Description |
|---|---|
protected SSH2Connection |
connection |
protected com.mindbright.ssh2.SSH2FTPProxyFilter.FTPInput |
ftpIn |
protected com.mindbright.ssh2.SSH2FTPProxyFilter.FTPOutput |
ftpOut |
protected boolean |
waitingPASVResponse |
| Modifier | Constructor and Description |
|---|---|
|
SSH2FTPProxyFilter(java.net.InetAddress localHost,
java.net.InetAddress serverLocalAddr)
Factory instance constructor
|
protected |
SSH2FTPProxyFilter(SSH2Connection connection,
SSH2StreamChannel channel,
SSH2FTPProxyFilter factory) |
|
SSH2FTPProxyFilter(java.lang.String localHost,
java.lang.String serverLocalAddr)
Factory instance constructor
|
| Modifier and Type | Method and Description |
|---|---|
SSH2StreamFilter |
createFilter(SSH2Connection connection,
SSH2StreamChannel channel)
Instance constructor
|
java.io.InputStream |
getInputFilter(java.io.InputStream toBeFiltered)
Get the filter for the input stream.
|
java.io.OutputStream |
getOutputFilter(java.io.OutputStream toBeFiltered)
Get the filter for the output stream.
|
protected SSH2Connection connection
protected com.mindbright.ssh2.SSH2FTPProxyFilter.FTPInput ftpIn
protected com.mindbright.ssh2.SSH2FTPProxyFilter.FTPOutput ftpOut
protected volatile boolean waitingPASVResponse
public SSH2FTPProxyFilter(java.lang.String localHost,
java.lang.String serverLocalAddr)
throws java.net.UnknownHostException
java.net.UnknownHostExceptionpublic SSH2FTPProxyFilter(java.net.InetAddress localHost,
java.net.InetAddress serverLocalAddr)
protected SSH2FTPProxyFilter(SSH2Connection connection, SSH2StreamChannel channel, SSH2FTPProxyFilter factory)
public SSH2StreamFilter createFilter(SSH2Connection connection, SSH2StreamChannel channel)
SSH2StreamFilterFactorycreateFilter in interface SSH2StreamFilterFactorypublic java.io.InputStream getInputFilter(java.io.InputStream toBeFiltered)
SSH2StreamFiltergetInputFilter in interface SSH2StreamFiltertoBeFiltered - The stream to filter.public java.io.OutputStream getOutputFilter(java.io.OutputStream toBeFiltered)
SSH2StreamFiltergetOutputFilter in interface SSH2StreamFiltertoBeFiltered - The stream to filter.