org.exoplatform.frameworks.ftpclient.client
Class FtpClientSessionImpl
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
FtpClientSessionImpl
public FtpClientSessionImpl(java.lang.String host,
int port)
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.