eXo JCR :: Component :: FTP Service 1.15.3-GA

org.exoplatform.services.ftp.client
Class FtpClientSessionImpl

java.lang.Object
  extended by 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

Version:
$Id: $

Constructor Summary
FtpClientSessionImpl(FtpServer ftpServer, Socket clientSocket)
           
 
Method Summary
 String changePath(String resPath)
           
 void closeDataTransiver()
           
 Socket getClientSocket()
           
 FtpDataTransiver getDataTransiver()
           
 FtpServer getFtpServer()
           
 ArrayList<String> getFullPath(String resPath)
           
 ArrayList<String> getPath()
           
 String getPrevCommand()
           
 String getPrevParams()
           
 String getPrevParamsEx()
           
 String getRepoPath(ArrayList<String> repoPath)
           
 String getServerIp()
           
 javax.jcr.Session getSession(String workspaceName)
           
 String getUserName()
           
 String getUserPassword()
           
 boolean isLogged()
           
 void logout()
           
 void refreshTimeOut()
           
 void reply(String replyString)
           
 void setDataTransiver(FtpDataTransiver newTransiver)
           
 void setPassword(String userPass)
           
 void setPrevCommand(String prevCommand)
           
 void setPrevParams(String prevParams)
           
 void setPrevParamsEx(String prevParamsEx)
           
 void setUserName(String userName)
           
protected  void welcomeClient()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FtpClientSessionImpl

public FtpClientSessionImpl(FtpServer ftpServer,
                            Socket clientSocket)
                     throws Exception
Throws:
Exception
Method Detail

getClientSocket

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

reply

public void reply(String replyString)
           throws IOException
Specified by:
reply in interface FtpClientSession
Throws:
IOException

getFtpServer

public FtpServer getFtpServer()
Specified by:
getFtpServer in interface FtpClientSession

welcomeClient

protected void welcomeClient()
                      throws IOException
Throws:
IOException

logout

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

isLogged

public boolean isLogged()
Specified by:
isLogged in interface FtpClientSession

setUserName

public void setUserName(String userName)
Specified by:
setUserName in interface FtpClientSession

setPassword

public void setPassword(String userPass)
                 throws Exception
Specified by:
setPassword in interface FtpClientSession
Throws:
Exception

getUserName

public String getUserName()
Specified by:
getUserName in interface FtpClientSession

getUserPassword

public String getUserPassword()
Specified by:
getUserPassword in interface FtpClientSession

getServerIp

public String getServerIp()
Specified by:
getServerIp in interface FtpClientSession

setDataTransiver

public void setDataTransiver(FtpDataTransiver newTransiver)
Specified by:
setDataTransiver in interface FtpClientSession

closeDataTransiver

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

getDataTransiver

public FtpDataTransiver getDataTransiver()
Specified by:
getDataTransiver in interface FtpClientSession

setPrevCommand

public void setPrevCommand(String prevCommand)
Specified by:
setPrevCommand in interface FtpClientSession

setPrevParams

public void setPrevParams(String prevParams)
Specified by:
setPrevParams in interface FtpClientSession

setPrevParamsEx

public void setPrevParamsEx(String prevParamsEx)
Specified by:
setPrevParamsEx in interface FtpClientSession

getPrevCommand

public String getPrevCommand()
Specified by:
getPrevCommand in interface FtpClientSession

getPrevParams

public String getPrevParams()
Specified by:
getPrevParams in interface FtpClientSession

getPrevParamsEx

public String getPrevParamsEx()
Specified by:
getPrevParamsEx in interface FtpClientSession

getFullPath

public ArrayList<String> getFullPath(String resPath)
Specified by:
getFullPath in interface FtpClientSession

getRepoPath

public String getRepoPath(ArrayList<String> repoPath)
Specified by:
getRepoPath in interface FtpClientSession

getSession

public javax.jcr.Session getSession(String workspaceName)
                             throws Exception
Specified by:
getSession in interface FtpClientSession
Throws:
Exception

changePath

public String changePath(String resPath)
Specified by:
changePath in interface FtpClientSession

getPath

public ArrayList<String> getPath()
Specified by:
getPath in interface FtpClientSession

refreshTimeOut

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

eXo JCR :: Component :: FTP Service 1.15.3-GA

Copyright © 2013 eXo Platform SAS. All Rights Reserved.