eXo JCR :: Framework :: FTP Client 1.15.14-CP01

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 Object
implements FtpClientSession

Created by The eXo Platform SAS .

Version:
$Id: $
Author:
Vitaly Guly

Field Summary
protected  Socket clientSocket
           
protected  FtpDataTransiver dataTransiver
           
protected  String host
           
protected  int port
           
protected  String systemType
           
 
Constructor Summary
FtpClientSessionImpl(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)
           
 Socket getClientSocket()
           
 FtpDataTransiver getDataTransiver()
           
 String getSystemType()
           
 void setDataTransiver(FtpDataTransiver dataTransiver)
           
 void setSystemType(String systemType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

host

protected String host

port

protected int port

clientSocket

protected Socket clientSocket

systemType

protected String systemType

dataTransiver

protected FtpDataTransiver dataTransiver
Constructor Detail

FtpClientSessionImpl

public FtpClientSessionImpl(String host,
                            int port)
Method Detail

connect

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

connect

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

close

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

getClientSocket

public Socket getClientSocket()
Specified by:
getClientSocket in interface FtpClientSession

executeCommand

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

executeCommand

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

setSystemType

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

getSystemType

public 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

eXo JCR :: Framework :: FTP Client 1.15.14-CP01

Copyright © 2015 eXo Platform SAS. All Rights Reserved.