org.ow2.petals.bc.sftp.connection
Class SFTPConnectionInfo

java.lang.Object
  extended by org.ow2.petals.bc.sftp.connection.SFTPConnectionInfo

public class SFTPConnectionInfo
extends java.lang.Object

Holds the SFTP connection parameters given in the service unit / message exchange.

Author:
Charles Casadei - eBM WebSourcing

Constructor Summary
SFTPConnectionInfo(java.lang.String server, java.lang.String port, SshAuthentication sshAuthentication, java.lang.String directory, boolean overwrite)
           
 
Method Summary
 java.lang.String getDirectory()
          Accessor on the current working directory.
 java.lang.String getKey()
          Builds a key identifying this connection.
 int getMaxConnection()
           
 long getMaxIdleTime()
           
 int getPort()
          Accessor on the port used by the SFTP server.
 java.lang.String getServer()
          Accessor on the host of the SFTP server.
 SshAuthentication getSshAuthentication()
          Accessor on the authentication used for the connection on the SSH server.
protected  boolean isOverwrite()
           
 void setMaxConnection(int maxConnection)
           
 void setMaxIdleTime(long maxIdleTime)
           
 java.lang.String toString()
          Returns a String with containing the values stored within an instance of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SFTPConnectionInfo

public SFTPConnectionInfo(java.lang.String server,
                          java.lang.String port,
                          SshAuthentication sshAuthentication,
                          java.lang.String directory,
                          boolean overwrite)
                   throws ConfigurationException
Throws:
ConfigurationException
Method Detail

getDirectory

public final java.lang.String getDirectory()
Accessor on the current working directory.

Returns:
the current working directory.

getKey

public final java.lang.String getKey()
Builds a key identifying this connection.

Returns:
a key identifying this connection.

getMaxConnection

public int getMaxConnection()

getMaxIdleTime

public long getMaxIdleTime()

getPort

public final int getPort()
Accessor on the port used by the SFTP server.

Returns:
the port used by the SFTP server

getServer

public final java.lang.String getServer()
Accessor on the host of the SFTP server.

Returns:
the host of the SFTP server

getSshAuthentication

public final SshAuthentication getSshAuthentication()
Accessor on the authentication used for the connection on the SSH server.

Returns:
the authentication used by the SSH server

setMaxConnection

public void setMaxConnection(int maxConnection)

setMaxIdleTime

public void setMaxIdleTime(long maxIdleTime)

toString

public final java.lang.String toString()
Returns a String with containing the values stored within an instance of this class.

Overrides:
toString in class java.lang.Object
Returns:
a String with containing the values stored within an instance of this class

isOverwrite

protected boolean isOverwrite()


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.