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_KEY
finalReplyCode, finalReplyMessageKey, finalReplyText, preliminaryReplyCode, preliminaryReplyMessageKey, preliminaryReplyText
LOG
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.
|
processData
afterProcessData, 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
protected void beforeProcessData(Command command, Session session, InvocationRecord invocationRecord) throws Exception
AbstractStubDataCommandHandler
beforeProcessData
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 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.