
public abstract class AbstractCommand extends Object implements org.waarp.common.command.CommandInterface
| Constructor and Description |
|---|
AbstractCommand() |
| Modifier and Type | Method and Description |
|---|---|
String |
getArg() |
String[] |
getArgs() |
FtpCommandCode |
getCode() |
String |
getCommand() |
FtpConfiguration |
getConfiguration() |
Object |
getObject() |
FtpSession |
getSession() |
int |
getValue(String argx) |
boolean |
hasArg() |
void |
invalidCurrentCommand() |
boolean |
isNextCommandValid(org.waarp.common.command.CommandInterface newCommandArg) |
void |
setArgs(org.waarp.common.file.SessionInterface session,
String command,
String arg,
Enum code) |
void |
setExtraNextCommand(Enum extraNextCommand) |
void |
setObject(Object object) |
public void setArgs(org.waarp.common.file.SessionInterface session,
String command,
String arg,
Enum code)
setArgs in interface org.waarp.common.command.CommandInterfacepublic void setExtraNextCommand(Enum extraNextCommand)
setExtraNextCommand in interface org.waarp.common.command.CommandInterfacepublic boolean isNextCommandValid(org.waarp.common.command.CommandInterface newCommandArg)
isNextCommandValid in interface org.waarp.common.command.CommandInterfacepublic Object getObject()
getObject in interface org.waarp.common.command.CommandInterfacepublic void setObject(Object object)
setObject in interface org.waarp.common.command.CommandInterfacepublic String getArg()
getArg in interface org.waarp.common.command.CommandInterfacepublic String[] getArgs()
getArgs in interface org.waarp.common.command.CommandInterfacepublic int getValue(String argx) throws org.waarp.common.exception.InvalidArgumentException
getValue in interface org.waarp.common.command.CommandInterfaceorg.waarp.common.exception.InvalidArgumentExceptionpublic String getCommand()
getCommand in interface org.waarp.common.command.CommandInterfacepublic boolean hasArg()
hasArg in interface org.waarp.common.command.CommandInterfacepublic FtpSession getSession()
getSession in interface org.waarp.common.command.CommandInterfacepublic FtpConfiguration getConfiguration()
public void invalidCurrentCommand()
invalidCurrentCommand in interface org.waarp.common.command.CommandInterfacepublic FtpCommandCode getCode()
getCode in interface org.waarp.common.command.CommandInterfaceCopyright © 2009–2019 Waarp. All rights reserved.