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.CommandInterface
public void setExtraNextCommand(Enum extraNextCommand)
setExtraNextCommand
in interface org.waarp.common.command.CommandInterface
public boolean isNextCommandValid(org.waarp.common.command.CommandInterface newCommandArg)
isNextCommandValid
in interface org.waarp.common.command.CommandInterface
public Object getObject()
getObject
in interface org.waarp.common.command.CommandInterface
public void setObject(Object object)
setObject
in interface org.waarp.common.command.CommandInterface
public String getArg()
getArg
in interface org.waarp.common.command.CommandInterface
public String[] getArgs()
getArgs
in interface org.waarp.common.command.CommandInterface
public int getValue(String argx) throws org.waarp.common.exception.InvalidArgumentException
getValue
in interface org.waarp.common.command.CommandInterface
org.waarp.common.exception.InvalidArgumentException
public String getCommand()
getCommand
in interface org.waarp.common.command.CommandInterface
public boolean hasArg()
hasArg
in interface org.waarp.common.command.CommandInterface
public FtpSession getSession()
getSession
in interface org.waarp.common.command.CommandInterface
public FtpConfiguration getConfiguration()
public void invalidCurrentCommand()
invalidCurrentCommand
in interface org.waarp.common.command.CommandInterface
public FtpCommandCode getCode()
getCode
in interface org.waarp.common.command.CommandInterface
Copyright © 2009–2019 Waarp. All rights reserved.