org.exoplatform.frameworks.ftpclient.client
Class FtpClientSessionImpl

java.lang.Object
  extended by org.exoplatform.frameworks.ftpclient.client.FtpClientSessionImpl
All Implemented Interfaces:
FtpClientSession

public class FtpClientSessionImpl
extends java.lang.Object
implements FtpClientSession

Created by The eXo Platform SAS .

Version:
$Id: FtpClientSessionImpl.java 35179 2009-08-07 13:58:20Z pnedonosko $
Author:
Vitaly Guly

Field Summary
protected  java.net.Socket clientSocket
           
protected  FtpDataTransiver dataTransiver
           
protected  java.lang.String host
           
protected  int port
           
protected  java.lang.String systemType
           
 
Constructor Summary
FtpClientSessionImpl(java.lang.String host, int port)
           
 
Method Summary
 void close()
           
 boolean connect()
           
 boolean connect(int attemptsCount)
           
 int executeCommand(FtpCommand command)
           
 int executeCommand(FtpCommand command, int expectReply, int attemptsCount)
           
 java.net.Socket getClientSocket()
           
 FtpDataTransiver getDataTransiver()
           
 java.lang.String getSystemType()
           
 void setDataTransiver(FtpDataTransiver dataTransiver)
           
 void setSystemType(java.lang.String systemType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

host

protected java.lang.String host

port

protected int port

clientSocket

protected java.net.Socket clientSocket

systemType

protected java.lang.String systemType

dataTransiver

protected FtpDataTransiver dataTransiver
Constructor Detail

FtpClientSessionImpl

public FtpClientSessionImpl(java.lang.String host,
                            int port)
Method Detail

connect

public boolean connect()
                throws java.lang.Exception
Specified by:
connect in interface FtpClientSession
Throws:
java.lang.Exception

connect

public boolean connect(int attemptsCount)
                throws java.lang.Exception
Specified by:
connect in interface FtpClientSession
Throws:
java.lang.Exception

close

public void close()
Specified by:
close in interface FtpClientSession

getClientSocket

public java.net.Socket getClientSocket()
Specified by:
getClientSocket in interface FtpClientSession

executeCommand

public int executeCommand(FtpCommand command)
                   throws java.lang.Exception
Specified by:
executeCommand in interface FtpClientSession
Throws:
java.lang.Exception

executeCommand

public int executeCommand(FtpCommand command,
                          int expectReply,
                          int attemptsCount)
                   throws java.lang.Exception
Specified by:
executeCommand in interface FtpClientSession
Throws:
java.lang.Exception

setSystemType

public void setSystemType(java.lang.String systemType)
Specified by:
setSystemType in interface FtpClientSession

getSystemType

public java.lang.String getSystemType()
Specified by:
getSystemType in interface FtpClientSession

setDataTransiver

public void setDataTransiver(FtpDataTransiver dataTransiver)
Specified by:
setDataTransiver in interface FtpClientSession

getDataTransiver

public FtpDataTransiver getDataTransiver()
Specified by:
getDataTransiver in interface FtpClientSession


Copyright © 2010 eXo Platform SAS. All Rights Reserved.