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

Created by The eXo Platform SAS Author : Vitaly Guly

Version:
$Id: FtpCommandImpl.java 35180 2009-08-07 14:04:22Z pnedonosko $

Field Summary
protected  java.lang.String commandName
           
protected  boolean isNeedLogin
           
 java.lang.ThreadLocal<FtpClientSession> localClientSession
           
 
Constructor Summary
FtpCommandImpl()
           
 
Method Summary
 FtpClientSession clientSession()
           
 boolean execute(org.apache.commons.chain.Context context)
           
 java.util.ArrayList<FtpFileInfo> getFileList(java.lang.String resPath)
           
 void removeResource(java.lang.String resName)
           
 void reply(java.lang.String replyString)
           
abstract  void run(java.lang.String[] params)
           
 void SendFileList(java.lang.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 java.lang.String commandName

localClientSession

public java.lang.ThreadLocal<FtpClientSession> localClientSession
Constructor Detail

FtpCommandImpl

public FtpCommandImpl()
Method Detail

reply

public void reply(java.lang.String replyString)
           throws java.io.IOException
Throws:
java.io.IOException

execute

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

run

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

clientSession

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

getFileList

public java.util.ArrayList<FtpFileInfo> getFileList(java.lang.String resPath)

removeResource

public void removeResource(java.lang.String resName)
                    throws java.io.IOException
Throws:
java.io.IOException

SendFileList

public void SendFileList(java.lang.String[] params)
                  throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2011 eXo Platform SAS. All Rights Reserved.