public class FtpClientSessionImpl extends Object implements FtpClientSession
| Modifier and Type | Field and Description |
|---|---|
protected Socket |
clientSocket |
protected FtpDataTransiver |
dataTransiver |
protected String |
host |
protected int |
port |
protected String |
systemType |
| Constructor and Description |
|---|
FtpClientSessionImpl(String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
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) |
protected String host
protected int port
protected Socket clientSocket
protected String systemType
protected FtpDataTransiver dataTransiver
public FtpClientSessionImpl(String host, int port)
public boolean connect()
throws Exception
connect in interface FtpClientSessionExceptionpublic boolean connect(int attemptsCount)
throws Exception
connect in interface FtpClientSessionExceptionpublic void close()
close in interface FtpClientSessionpublic Socket getClientSocket()
getClientSocket in interface FtpClientSessionpublic int executeCommand(FtpCommand command) throws Exception
executeCommand in interface FtpClientSessionExceptionpublic int executeCommand(FtpCommand command, int expectReply, int attemptsCount) throws Exception
executeCommand in interface FtpClientSessionExceptionpublic void setSystemType(String systemType)
setSystemType in interface FtpClientSessionpublic String getSystemType()
getSystemType in interface FtpClientSessionpublic void setDataTransiver(FtpDataTransiver dataTransiver)
setDataTransiver in interface FtpClientSessionpublic FtpDataTransiver getDataTransiver()
getDataTransiver in interface FtpClientSessionCopyright © 2017 eXo Platform SAS. All Rights Reserved.