In the FTP Proxy product, one basic requirement is to intercept upstream authentication commands (USER and PASS commands sent from FTP client to FTP server), finish customized authentication and then let FTP client and FTP server work together with following tasks.
For upstream commands, the proxy has an inputstream from client and an output stream to server; for downstream commands, it has an inputstream from server and an inputstream to client. An easy way to deal with it is StreamConnector.
Don't mix up with similar solutions like Convert a Java OutputStream to an InputStream and Java utilities for stream wiring and file format detection.
No comments:
Post a Comment