org.exoplatform.frameworks.ftpclient.commands
Class FtpCommandImpl

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

Created by The eXo Platform SAS .

Version:
$Id: FtpCommandImpl.java 35179 2009-08-07 13:58:20Z pnedonosko $
Author:
Vitaly Guly

Field Summary
protected  FtpClientSession clientSession
           
protected  java.lang.String descript
           
protected  int replyCode
           
 
Constructor Summary
FtpCommandImpl()
           
 
Method Summary
abstract  int execute()
           
 java.lang.String getDescription()
           
 int getReply()
           
 java.lang.String readLine()
           
 int run(FtpClientSession clientSession)
           
 void sendCommand(java.lang.String command)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clientSession

protected FtpClientSession clientSession

replyCode

protected int replyCode

descript

protected java.lang.String descript
Constructor Detail

FtpCommandImpl

public FtpCommandImpl()
Method Detail

run

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

execute

public abstract int execute()
Specified by:
execute in interface FtpCommand

sendCommand

public void sendCommand(java.lang.String command)

getReply

public int getReply()
             throws java.lang.Exception
Specified by:
getReply in interface FtpCommand
Throws:
java.lang.Exception

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface FtpCommand

readLine

public java.lang.String readLine()
                          throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2010 eXo Platform SAS. All Rights Reserved.