public class StouCommandHandler extends AbstractStorCommandHandler
filename property.
Each invocation record stored by this CommandHandler includes the following data element key/values:
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 |
|---|
StouCommandHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
sendFinalReply(Session session)
Override the default implementation to send a custom reply text that includes the STOU response filename
|
void |
setFilename(String filename)
Set the filename returned with the final reply of the STOU command
|
processDataafterProcessData, beforeProcessData, handleCommand, setFinalReplyCode, setFinalReplyMessageKey, setFinalReplyText, setPreliminaryReplyCode, setPreliminaryReplyMessageKey, setPreliminaryReplyTextclearInvocations, getInvocation, handleCommand, numberOfInvocations, sendReplyassertValidReplyCode, getReplyTextBundle, quotes, setReplyTextBundleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleCommandprotected void sendFinalReply(Session session)
sendFinalReply in class AbstractStubDataCommandHandlersession - - the SessionAbstractStubDataCommandHandler.sendFinalReply(org.mockftpserver.core.session.Session)public void setFilename(String filename)
filename - - the filenameCopyright © 2016. All rights reserved.