net.sf.commons.ssh.sshd
Class SshdConnectionFactory

java.lang.Object
  extended by net.sf.commons.ssh.ConnectionFactory
      extended by net.sf.commons.ssh.sshd.SshdConnectionFactory

public class SshdConnectionFactory
extends ConnectionFactory

Since:
1.3
Author:
Sergey Vladimirov (vlsergey at gmail dot com)

Field Summary
 
Fields inherited from class net.sf.commons.ssh.ConnectionFactory
log
 
Constructor Summary
SshdConnectionFactory()
          Creates new instance of SshdConnectionFactory
 
Method Summary
protected  java.util.Set getSupportedFeaturesImpl()
          Creates Set of String — the set of supported features codes.
 Connection openConnection(java.lang.String host, int port, AuthenticationOptions authOptions)
          Creates new SSH connection using the specified connection settings
 
Methods inherited from class net.sf.commons.ssh.ConnectionFactory
getKexTimeout, getPort, getSoTimeout, getSupportedFeatures, isFeatureSupported, isSendIgnore, newInstance, openConnection, setKexTimeout, setPort, setSendIgnore, setSoTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SshdConnectionFactory

public SshdConnectionFactory()
Creates new instance of SshdConnectionFactory

Method Detail

getSupportedFeaturesImpl

protected java.util.Set getSupportedFeaturesImpl()
Description copied from class: ConnectionFactory
Creates Set of String — the set of supported features codes.

Specified by:
getSupportedFeaturesImpl in class ConnectionFactory
Returns:
Set of String — the set of supported features codes.
See Also:
ConnectionFactory.isFeatureSupported(String), Features

openConnection

public Connection openConnection(java.lang.String host,
                                 int port,
                                 AuthenticationOptions authOptions)
                          throws java.io.IOException
Description copied from class: ConnectionFactory
Creates new SSH connection using the specified connection settings

Specified by:
openConnection in class ConnectionFactory
Parameters:
host - host to connect
port - port to connect
authOptions - Authentication Options (should be supported by connection factory)
Returns:
new SSH connection
Throws:
java.io.IOException - if I/O exception occurs


Copyright © 2009. All Rights Reserved.