Class FtpClientSessionImpl
- java.lang.Object
-
- org.exoplatform.services.ftp.client.FtpClientSessionImpl
-
- All Implemented Interfaces:
FtpClientSession
public class FtpClientSessionImpl extends Object implements FtpClientSession
Created by The eXo Platform SAS Author : Vitaly Guly gavrik-vetal@ukr.net/mail.ru- Version:
- $Id: $
-
-
Constructor Summary
Constructors Constructor Description FtpClientSessionImpl(FtpServer ftpServer, Socket clientSocket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringchangePath(String resPath)voidcloseDataTransiver()SocketgetClientSocket()FtpDataTransivergetDataTransiver()FtpServergetFtpServer()ArrayList<String>getFullPath(String resPath)ArrayList<String>getPath()StringgetPrevCommand()StringgetPrevParams()StringgetPrevParamsEx()StringgetRepoPath(ArrayList<String> repoPath)StringgetServerIp()javax.jcr.SessiongetSession(String workspaceName)StringgetUserName()StringgetUserPassword()booleanisLogged()voidlogout()voidrefreshTimeOut()voidreply(String replyString)voidsetDataTransiver(FtpDataTransiver newTransiver)voidsetPassword(String userPass)voidsetPrevCommand(String prevCommand)voidsetPrevParams(String prevParams)voidsetPrevParamsEx(String prevParamsEx)voidsetUserName(String userName)protected voidwelcomeClient()
-
-
-
Method Detail
-
getClientSocket
public Socket getClientSocket()
- Specified by:
getClientSocketin interfaceFtpClientSession
-
reply
public void reply(String replyString) throws IOException
- Specified by:
replyin interfaceFtpClientSession- Throws:
IOException
-
getFtpServer
public FtpServer getFtpServer()
- Specified by:
getFtpServerin interfaceFtpClientSession
-
welcomeClient
protected void welcomeClient() throws IOException- Throws:
IOException
-
logout
public void logout()
- Specified by:
logoutin interfaceFtpClientSession
-
isLogged
public boolean isLogged()
- Specified by:
isLoggedin interfaceFtpClientSession
-
setUserName
public void setUserName(String userName)
- Specified by:
setUserNamein interfaceFtpClientSession
-
setPassword
public void setPassword(String userPass) throws Exception
- Specified by:
setPasswordin interfaceFtpClientSession- Throws:
Exception
-
getUserName
public String getUserName()
- Specified by:
getUserNamein interfaceFtpClientSession
-
getUserPassword
public String getUserPassword()
- Specified by:
getUserPasswordin interfaceFtpClientSession
-
getServerIp
public String getServerIp()
- Specified by:
getServerIpin interfaceFtpClientSession
-
setDataTransiver
public void setDataTransiver(FtpDataTransiver newTransiver)
- Specified by:
setDataTransiverin interfaceFtpClientSession
-
closeDataTransiver
public void closeDataTransiver()
- Specified by:
closeDataTransiverin interfaceFtpClientSession
-
getDataTransiver
public FtpDataTransiver getDataTransiver()
- Specified by:
getDataTransiverin interfaceFtpClientSession
-
setPrevCommand
public void setPrevCommand(String prevCommand)
- Specified by:
setPrevCommandin interfaceFtpClientSession
-
setPrevParams
public void setPrevParams(String prevParams)
- Specified by:
setPrevParamsin interfaceFtpClientSession
-
setPrevParamsEx
public void setPrevParamsEx(String prevParamsEx)
- Specified by:
setPrevParamsExin interfaceFtpClientSession
-
getPrevCommand
public String getPrevCommand()
- Specified by:
getPrevCommandin interfaceFtpClientSession
-
getPrevParams
public String getPrevParams()
- Specified by:
getPrevParamsin interfaceFtpClientSession
-
getPrevParamsEx
public String getPrevParamsEx()
- Specified by:
getPrevParamsExin interfaceFtpClientSession
-
getFullPath
public ArrayList<String> getFullPath(String resPath)
- Specified by:
getFullPathin interfaceFtpClientSession
-
getRepoPath
public String getRepoPath(ArrayList<String> repoPath)
- Specified by:
getRepoPathin interfaceFtpClientSession
-
getSession
public javax.jcr.Session getSession(String workspaceName) throws Exception
- Specified by:
getSessionin interfaceFtpClientSession- Throws:
Exception
-
changePath
public String changePath(String resPath)
- Specified by:
changePathin interfaceFtpClientSession
-
getPath
public ArrayList<String> getPath()
- Specified by:
getPathin interfaceFtpClientSession
-
refreshTimeOut
public void refreshTimeOut()
- Specified by:
refreshTimeOutin interfaceFtpClientSession
-
-