public class AlloCommandHandler extends AbstractStubCommandHandler implements CommandHandler
Each invocation record stored by this CommandHandler includes the following data element key/values:
NUMBER_OF_BYTES_KEY ("numberOfBytes") - the number of bytes submitted
on the invocation (the first command parameter)
RECORD_SIZE_KEY ("recordSize") - the record size optionally submitted
on the invocation (the second command parameter)
| Modifier and Type | Field and Description |
|---|---|
static String |
NUMBER_OF_BYTES_KEY |
static String |
RECORD_SIZE_KEY |
replyCode, replyMessageKey, replyTextLOG| Constructor and Description |
|---|
AlloCommandHandler()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleCommand(Command command,
Session session,
InvocationRecord invocationRecord)
Handle the specified command for the session.
|
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 NUMBER_OF_BYTES_KEY
public static final String RECORD_SIZE_KEY
public AlloCommandHandler()
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 appropriateCommandHandler.handleCommand(org.mockftpserver.core.command.Command, org.mockftpserver.core.session.Session)Copyright © 2016. All rights reserved.