public class CwdCommandHandler extends AbstractStubCommandHandler implements CommandHandler
Each invocation record stored by this CommandHandler includes the following data element key/values:
PATHNAME_KEY
("pathname") - the pathname of the directory submitted on the invocation (the first command parameter)
Modifier and Type | Field and Description |
---|---|
static String |
PATHNAME_KEY |
replyCode, replyMessageKey, replyText
LOG
Constructor and Description |
---|
CwdCommandHandler()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
handleCommand(Command command,
Session session,
InvocationRecord invocationRecord)
Handle the specified command for the session.
|
sendReply, sendReply, setReplyCode, setReplyMessageKey, setReplyText
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 CwdCommandHandler()
public void handleCommand(Command command, Session session, InvocationRecord invocationRecord)
AbstractTrackingCommandHandler
handleCommand
in class AbstractTrackingCommandHandler
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 appropriateCommandHandler.handleCommand(org.mockftpserver.core.command.Command, org.mockftpserver.core.session.Session)
Copyright © 2016. All rights reserved.