net.sf.commons.ssh.ganymed
Class GanymedConnectionFactory

java.lang.Object
  extended by net.sf.commons.ssh.ConnectionFactory
      extended by net.sf.commons.ssh.ganymed.GanymedConnectionFactory

public class GanymedConnectionFactory
extends ConnectionFactory

Since:
1.0
Author:
Sergey Vidyuk (svidyuk at gmail dot com)

Field Summary
 
Fields inherited from class net.sf.commons.ssh.ConnectionFactory
log
 
Constructor Summary
GanymedConnectionFactory()
          Creates new instance of GanymedConnectionFactory
 
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

GanymedConnectionFactory

public GanymedConnectionFactory()
                         throws java.lang.Exception
Creates new instance of GanymedConnectionFactory

Throws:
java.lang.Exception - if unable to create instance
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.