public abstract class AbstractStorCommandHandler extends AbstractStubDataCommandHandler
Each invocation record stored by this CommandHandler includes the following data element key/values:
FILE_CONTENTS_KEY
("fileContents") - the file contents (byte[]
) sent on the data connection
Modifier and Type | Field and Description |
---|---|
static String |
FILE_CONTENTS_KEY |
static String |
PATHNAME_KEY |
finalReplyCode, finalReplyMessageKey, finalReplyText, preliminaryReplyCode, preliminaryReplyMessageKey, preliminaryReplyText
LOG
Constructor and Description |
---|
AbstractStorCommandHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
processData(Command command,
Session session,
InvocationRecord invocationRecord)
Abstract method placeholder for subclass transfer of data across the data connection.
|
afterProcessData, beforeProcessData, handleCommand, sendFinalReply, setFinalReplyCode, setFinalReplyMessageKey, setFinalReplyText, setPreliminaryReplyCode, setPreliminaryReplyMessageKey, setPreliminaryReplyText
clearInvocations, getInvocation, handleCommand, numberOfInvocations, sendReply
assertValidReplyCode, getReplyTextBundle, quotes, setReplyTextBundle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleCommand
public static final String PATHNAME_KEY
public static final String FILE_CONTENTS_KEY
protected void processData(Command command, Session session, InvocationRecord invocationRecord)
AbstractStubDataCommandHandler
processData
in class AbstractStubDataCommandHandler
command
- - 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 appropriateAbstractStubDataCommandHandler.processData(org.mockftpserver.core.command.Command, org.mockftpserver.core.session.Session, org.mockftpserver.core.command.InvocationRecord)
Copyright © 2016. All rights reserved.