Class FtpClientSessionImpl
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description protected SocketclientSocketprotected FtpDataTransiverdataTransiverprotected Stringhostprotected intportprotected StringsystemType
-
Constructor Summary
Constructors Constructor Description FtpClientSessionImpl(String host, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanconnect()booleanconnect(int attemptsCount)intexecuteCommand(FtpCommand command)intexecuteCommand(FtpCommand command, int expectReply, int attemptsCount)SocketgetClientSocket()FtpDataTransivergetDataTransiver()StringgetSystemType()voidsetDataTransiver(FtpDataTransiver dataTransiver)voidsetSystemType(String systemType)
-
-
-
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:
connectin interfaceFtpClientSession- Throws:
Exception
-
connect
public boolean connect(int attemptsCount) throws Exception- Specified by:
connectin interfaceFtpClientSession- Throws:
Exception
-
close
public void close()
- Specified by:
closein interfaceFtpClientSession
-
getClientSocket
public Socket getClientSocket()
- Specified by:
getClientSocketin interfaceFtpClientSession
-
executeCommand
public int executeCommand(FtpCommand command) throws Exception
- Specified by:
executeCommandin interfaceFtpClientSession- Throws:
Exception
-
executeCommand
public int executeCommand(FtpCommand command, int expectReply, int attemptsCount) throws Exception
- Specified by:
executeCommandin interfaceFtpClientSession- Throws:
Exception
-
setSystemType
public void setSystemType(String systemType)
- Specified by:
setSystemTypein interfaceFtpClientSession
-
getSystemType
public String getSystemType()
- Specified by:
getSystemTypein interfaceFtpClientSession
-
setDataTransiver
public void setDataTransiver(FtpDataTransiver dataTransiver)
- Specified by:
setDataTransiverin interfaceFtpClientSession
-
getDataTransiver
public FtpDataTransiver getDataTransiver()
- Specified by:
getDataTransiverin interfaceFtpClientSession
-
-