eXo JCR :: Component :: FTP Service 1.16.7-RC01

org.exoplatform.services.ftp.command
Class FtpCommandImpl

java.lang.Object
  extended by org.exoplatform.services.ftp.command.FtpCommandImpl
All Implemented Interfaces:
org.apache.commons.chain.Command, FtpCommand
Direct Known Subclasses:
CmdCdUp, CmdCwd, CmdDele, CmdHelp, CmdList, CmdMkd, CmdMode, CmdNLst, CmdNoop, CmdPass, CmdPasv, CmdPort, CmdPwd, CmdQuit, CmdRest, CmdRetr, CmdRmd, CmdRnFr, CmdRnTo, CmdSize, CmdStat, CmdStor, CmdStru, CmdSyst, CmdType, CmdUser

public abstract class FtpCommandImpl
extends Object
implements FtpCommand

Created by The eXo Platform SAS Author : Vitaly Guly

Version:
$Id: $

Field Summary
protected  String commandName
           
protected  boolean isNeedLogin
           
 ThreadLocal<FtpClientSession> localClientSession
           
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
FtpCommandImpl()
           
 
Method Summary
 FtpClientSession clientSession()
           
 boolean execute(org.apache.commons.chain.Context context)
           
 ArrayList<FtpFileInfo> getFileList(String resPath)
           
 void removeResource(String resName)
           
 void reply(String replyString)
           
abstract  void run(String[] params)
           
 void SendFileList(String[] params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isNeedLogin

protected boolean isNeedLogin

commandName

protected String commandName

localClientSession

public ThreadLocal<FtpClientSession> localClientSession
Constructor Detail

FtpCommandImpl

public FtpCommandImpl()
Method Detail

reply

public void reply(String replyString)
           throws IOException
Throws:
IOException

execute

public boolean execute(org.apache.commons.chain.Context context)
                throws Exception
Specified by:
execute in interface org.apache.commons.chain.Command
Specified by:
execute in interface FtpCommand
Throws:
Exception

run

public abstract void run(String[] params)
                  throws Exception
Specified by:
run in interface FtpCommand
Throws:
Exception

clientSession

public FtpClientSession clientSession()
Specified by:
clientSession in interface FtpCommand

getFileList

public ArrayList<FtpFileInfo> getFileList(String resPath)

removeResource

public void removeResource(String resName)
                    throws IOException
Throws:
IOException

SendFileList

public void SendFileList(String[] params)
                  throws IOException
Throws:
IOException

eXo JCR :: Component :: FTP Service 1.16.7-RC01

Copyright © 2016 eXo Platform SAS. All Rights Reserved.