com.dsoft.jca.driver
Interface IConnectionDriver


public interface IConnectionDriver


Method Summary
 void connect()
          This method connect to EIS
 java.lang.String execute(java.lang.String command)
          This method executes a command on remote EIS system and return a result of the execution.
 void get(java.lang.String local, java.lang.String remote)
          This method implements the get FTP function
 java.lang.String getHostname()
           
 java.lang.String getPassword()
           
 int getPort()
           
 java.lang.String getPrompt()
           
 int getTimeout()
           
 java.lang.String getUsername()
           
 void put(java.lang.String local, java.lang.String remote)
          This method implements the put function of FTP and sFTP.
 java.lang.String receive()
          This method is called to receive data after the connection is being made to the EIS server.
 java.lang.String send(java.lang.String message)
          This method sends data to EIS server and returns response back.
 void setHostname(java.lang.String hostname)
           
 void setPassword(java.lang.String password)
           
 void setPort(int port)
           
 void setPrompt(java.lang.String prompt)
           
 void setTimeout(int timeout)
           
 void setUsername(java.lang.String username)
           
 

Method Detail

put

void put(java.lang.String local,
         java.lang.String remote)
         throws ConnectionException
This method implements the put function of FTP and sFTP.

Parameters:
local: - is local file name
remote: - is the remote file name
Throws:
JsshException
ConnectionException

get

void get(java.lang.String local,
         java.lang.String remote)
         throws ConnectionException
This method implements the get FTP function

Parameters:
local -
remote -
Throws:
ConnectionException

execute

java.lang.String execute(java.lang.String command)
                         throws ConnectionException
This method executes a command on remote EIS system and return a result of the execution.

Parameters:
command -
Returns:
String
Throws:
ConnectionException

send

java.lang.String send(java.lang.String message)
                      throws ConnectionException
This method sends data to EIS server and returns response back. It may return null if the return is not implemented by the adapter.

Parameters:
message -
Returns:
String
Throws:
ConnectionException

receive

java.lang.String receive()
                         throws ConnectionException
This method is called to receive data after the connection is being made to the EIS server.

Returns:
String
Throws:
ConnectionException

connect

void connect()
             throws ConnectionException
This method connect to EIS

Throws:
ConnectionException

getHostname

java.lang.String getHostname()
Returns:
the hostname

setHostname

void setHostname(java.lang.String hostname)
Parameters:
hostname - the hostname to set

getPassword

java.lang.String getPassword()
Returns:
the password

setPassword

void setPassword(java.lang.String password)
Parameters:
password - the password to set

getPort

int getPort()
Returns:
the port

setPort

void setPort(int port)
Parameters:
port - the port to set

getUsername

java.lang.String getUsername()
Returns:
the username

setUsername

void setUsername(java.lang.String username)
Parameters:
username - the username to set

getPrompt

java.lang.String getPrompt()
Returns:
the driver

setPrompt

void setPrompt(java.lang.String prompt)
Parameters:
prompt - the prompt to set

getTimeout

int getTimeout()
Returns:
the timeout

setTimeout

void setTimeout(int timeout)
Parameters:
timeout - the timeout to set


Copyright © 2006 Sadi Melbouci. All Rights Reserved.