public class StorCommandHandler extends AbstractStorCommandHandler
Each invocation record stored by this CommandHandler includes the following data element key/values:
AbstractStorCommandHandler.PATHNAME_KEY ("pathname") - the pathname of the directory submitted on the invocation (the first command parameter)
AbstractStorCommandHandler.FILE_CONTENTS_KEY ("fileContents") - the file contents (byte[]) sent on the data connection
FILE_CONTENTS_KEY, PATHNAME_KEYfinalReplyCode, finalReplyMessageKey, finalReplyText, preliminaryReplyCode, preliminaryReplyMessageKey, preliminaryReplyTextLOG| Constructor and Description |
|---|
StorCommandHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
beforeProcessData(Command command,
Session session,
InvocationRecord invocationRecord)
Perform any necessary logic before transferring data across the data connection.
|
processDataafterProcessData, handleCommand, sendFinalReply, setFinalReplyCode, setFinalReplyMessageKey, setFinalReplyText, setPreliminaryReplyCode, setPreliminaryReplyMessageKey, setPreliminaryReplyTextclearInvocations, getInvocation, handleCommand, numberOfInvocations, sendReplyassertValidReplyCode, getReplyTextBundle, quotes, setReplyTextBundleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleCommandprotected void beforeProcessData(Command command, Session session, InvocationRecord invocationRecord) throws Exception
AbstractStubDataCommandHandlerbeforeProcessData in class AbstractStubDataCommandHandlercommand - - 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 appropriateException - - if an error occursAbstractStubDataCommandHandler.beforeProcessData(org.mockftpserver.core.command.Command, org.mockftpserver.core.session.Session, org.mockftpserver.core.command.InvocationRecord)Copyright © 2016. All rights reserved.