commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michele Laghi <>
Subject vfs request for addition
Date Mon, 01 Dec 2003 15:24:40 GMT
I would like to use sftp but I need to pass properties to the JSch session.

I think the right place to do that would be to add a method

protected void SftpFileSystem.prepareSession(Session);

and invoke this in SftpFileSystem.getChannel() before session.connect();

Could you add this to the code ?

prepareSession could be an empty method which people could overwrite 
according to their needs. In my case I would do something like:

protected void prepareSession(Session session) {
    String addSystemPropsTxt = 
    if ("true".equalsIgnoreCase(addSystemPropsTxt.trim())) {

If this is generic enougth it could be implemented instead of an empty 
method (I would then spare me to extend SftpFileSystem).


Michele Laghi

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message