Class FtpCommandImpl
- java.lang.Object
-
- 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 gavrik-vetal@ukr.net/mail.ru- Version:
- $Id: $
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcommandNameprotected booleanisNeedLoginThreadLocal<FtpClientSession>localClientSession
-
Constructor Summary
Constructors Constructor Description FtpCommandImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description FtpClientSessionclientSession()booleanexecute(org.apache.commons.chain.Context context)ArrayList<FtpFileInfo>getFileList(String resPath)voidremoveResource(String resName)voidreply(String replyString)abstract voidrun(String[] params)voidSendFileList(String[] params)
-
-
-
Field Detail
-
isNeedLogin
protected boolean isNeedLogin
-
commandName
protected String commandName
-
localClientSession
public ThreadLocal<FtpClientSession> localClientSession
-
-
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:
executein interfaceorg.apache.commons.chain.Command- Specified by:
executein interfaceFtpCommand- Throws:
Exception
-
run
public abstract void run(String[] params) throws Exception
- Specified by:
runin interfaceFtpCommand- Throws:
Exception
-
clientSession
public FtpClientSession clientSession()
- Specified by:
clientSessionin interfaceFtpCommand
-
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
-
-