public abstract class FtpCommandImpl extends Object implements FtpCommand
| Modifier and Type | Field and Description |
|---|---|
protected String |
commandName |
protected boolean |
isNeedLogin |
ThreadLocal<FtpClientSession> |
localClientSession |
| Constructor and Description |
|---|
FtpCommandImpl() |
| Modifier and Type | Method and Description |
|---|---|
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) |
protected boolean isNeedLogin
protected String commandName
public ThreadLocal<FtpClientSession> localClientSession
public void reply(String replyString) throws IOException
IOExceptionpublic boolean execute(org.apache.commons.chain.Context context)
throws Exception
execute in interface org.apache.commons.chain.Commandexecute in interface FtpCommandExceptionpublic abstract void run(String[] params) throws Exception
run in interface FtpCommandExceptionpublic FtpClientSession clientSession()
clientSession in interface FtpCommandpublic ArrayList<FtpFileInfo> getFileList(String resPath)
public void removeResource(String resName) throws IOException
IOExceptionpublic void SendFileList(String[] params) throws IOException
IOExceptionCopyright © 2003–2020 eXo Platform SAS. All rights reserved.