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_KEY
finalReplyCode, finalReplyMessageKey, finalReplyText, preliminaryReplyCode, preliminaryReplyMessageKey, preliminaryReplyText
LOG
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
|
processData
afterProcessData, beforeProcessData, handleCommand, 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 sendFinalReply(Session session)
sendFinalReply
in class AbstractStubDataCommandHandler
session
- - the SessionAbstractStubDataCommandHandler.sendFinalReply(org.mockftpserver.core.session.Session)
public void setFilename(String filename)
filename
- - the filenameCopyright © 2016. All rights reserved.