Class FtpCommandImpl
- java.lang.Object
-
- org.exoplatform.frameworks.ftpclient.commands.FtpCommandImpl
-
- All Implemented Interfaces:
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 .- Version:
- $Id: $
- Author:
- Vitaly Guly
-
-
Field Summary
Fields Modifier and Type Field Description protected FtpClientSessionclientSessionprotected Stringdescriptprotected intreplyCode
-
Constructor Summary
Constructors Constructor Description FtpCommandImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract intexecute()StringgetDescription()intgetReply()StringreadLine()intrun(FtpClientSession clientSession)voidsendCommand(String command)
-
-
-
Field Detail
-
clientSession
protected FtpClientSession clientSession
-
replyCode
protected int replyCode
-
descript
protected String descript
-
-
Method Detail
-
run
public int run(FtpClientSession clientSession)
- Specified by:
runin interfaceFtpCommand
-
execute
public abstract int execute()
- Specified by:
executein interfaceFtpCommand
-
sendCommand
public void sendCommand(String command)
-
getReply
public int getReply() throws Exception- Specified by:
getReplyin interfaceFtpCommand- Throws:
Exception
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceFtpCommand
-
-