public final class HelpCommandHandler extends AbstractStubCommandHandler implements CommandHandler
helpMessage property.
Each invocation record stored by this CommandHandler includes the following data element key/values:
COMMAND_NAME_KEY ("commandName") - the command name optionally submitted on
the invocation (the first command parameter). May be null.
| Modifier and Type | Field and Description |
|---|---|
static String |
COMMAND_NAME_KEY |
replyCode, replyMessageKey, replyTextLOG| Constructor and Description |
|---|
HelpCommandHandler()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleCommand(Command command,
Session session,
InvocationRecord invocationRecord)
Handle the specified command for the session.
|
void |
setHelpMessage(String helpMessage)
Set the help message String to be returned by this command
|
sendReply, sendReply, setReplyCode, setReplyMessageKey, setReplyTextclearInvocations, getInvocation, handleCommand, numberOfInvocations, sendReplyassertValidReplyCode, getReplyTextBundle, quotes, setReplyTextBundleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleCommandpublic static final String COMMAND_NAME_KEY
public HelpCommandHandler()
public void handleCommand(Command command, Session session, InvocationRecord invocationRecord)
AbstractTrackingCommandHandlerhandleCommand in class AbstractTrackingCommandHandlercommand - - the Command to be handledsession - - the session on which the Command was submittedinvocationRecord - - the InvocationRecord; CommandHandlers are expected to add
handler-specific data to the InvocationRecord, as appropriateAbstractTrackingCommandHandler.handleCommand(org.mockftpserver.core.command.Command, org.mockftpserver.core.session.Session, org.mockftpserver.core.command.InvocationRecord)public void setHelpMessage(String helpMessage)
helpMessage - - the help messageCopyright © 2016. All rights reserved.