|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindbright.ssh2.SSH2FTPProxyFilter
Implements support for FTP over SSH. This implemntation sits on the client side of the FTP command stream and opens new port forwards as needed for the various data transfers. No server-side proxy is needed.
Field Summary | |
protected SSH2StreamChannel |
channel
|
protected SSH2Connection |
connection
|
protected com.mindbright.ssh2.SSH2FTPProxyFilter.FTPInput |
ftpIn
|
protected com.mindbright.ssh2.SSH2FTPProxyFilter.FTPOutput |
ftpOut
|
protected boolean |
waitingPASVResponse
|
Constructor Summary | |
|
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 |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected SSH2Connection connection
protected SSH2StreamChannel channel
protected com.mindbright.ssh2.SSH2FTPProxyFilter.FTPInput ftpIn
protected com.mindbright.ssh2.SSH2FTPProxyFilter.FTPOutput ftpOut
protected volatile boolean waitingPASVResponse
Constructor Detail |
public SSH2FTPProxyFilter(java.lang.String localHost, java.lang.String serverLocalAddr) throws java.net.UnknownHostException
public SSH2FTPProxyFilter(java.net.InetAddress localHost, java.net.InetAddress serverLocalAddr)
protected SSH2FTPProxyFilter(SSH2Connection connection, SSH2StreamChannel channel, SSH2FTPProxyFilter factory)
Method Detail |
public SSH2StreamFilter createFilter(SSH2Connection connection, SSH2StreamChannel channel)
SSH2StreamFilterFactory
createFilter
in interface SSH2StreamFilterFactory
public java.io.InputStream getInputFilter(java.io.InputStream toBeFiltered)
SSH2StreamFilter
getInputFilter
in interface SSH2StreamFilter
toBeFiltered
- The stream to filter.public java.io.OutputStream getOutputFilter(java.io.OutputStream toBeFiltered)
SSH2StreamFilter
getOutputFilter
in interface SSH2StreamFilter
toBeFiltered
- The stream to filter.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |