org.mockftpserver.fake.command
Class RnfrCommandHandler
java.lang.Object
org.mockftpserver.core.command.AbstractCommandHandler
org.mockftpserver.fake.command.AbstractFakeCommandHandler
org.mockftpserver.fake.command.RnfrCommandHandler
- All Implemented Interfaces:
- CommandHandler, ReplyTextBundleAware, ServerConfigurationAware
public class RnfrCommandHandler
- extends AbstractFakeCommandHandler
CommandHandler for the RNFR command. Handler logic:
- If the user has not logged in, then reply with 530
- If the required FROM pathname parameter is missing, then reply with 501
- If the FROM pathname parameter does not specify a valid file or directory, then reply with 550
- If the current user does not have read access to the path, then reply with 550
- Otherwise, reply with 350 and store the FROM path in the session
The supplied pathname may be absolute or relative to the current directory.
- Version:
- $Revision: 245 $ - $Date: 2010-03-23 21:31:05 -0400 (Tue, 23 Mar 2010) $
- Author:
- Chris Mair
|
Method Summary |
protected void |
handle(Command command,
Session session)
Handle the specified command for the session. |
| Methods inherited from class org.mockftpserver.fake.command.AbstractFakeCommandHandler |
defaultIfNullOrEmpty, endOfLine, getFileSystem, getRealPath, getRequiredSessionAttribute, getServerConfiguration, getUserAccount, handleCommand, list, list, login, notNullOrEmpty, sendReply, sendReply, sendReply, sendReply, setServerConfiguration, validateUserAccount, verifyExecutePermission, verifyFileSystemCondition, verifyLoggedIn, verifyReadPermission, verifyWritePermission |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RnfrCommandHandler
public RnfrCommandHandler()
handle
protected void handle(Command command,
Session session)
- Description copied from class:
AbstractFakeCommandHandler
- Handle the specified command for the session. All checked exceptions are expected to be wrapped or handled
by the caller.
- Specified by:
handle in class AbstractFakeCommandHandler
- Parameters:
command - - the Command to be handledsession - - the session on which the Command was submitted
Copyright © 2014. All rights reserved.