org.mockftpserver.fake.command
Class PassCommandHandler
java.lang.Object
org.mockftpserver.core.command.AbstractCommandHandler
org.mockftpserver.fake.command.AbstractFakeCommandHandler
org.mockftpserver.fake.command.PassCommandHandler
- All Implemented Interfaces:
- CommandHandler, ReplyTextBundleAware, ServerConfigurationAware
public class PassCommandHandler
- extends AbstractFakeCommandHandler
CommandHandler for the PASS command. Handler logic:
- If the required password parameter is missing, then reply with 501
- If this command was not preceded by a valid USER command, then reply with 503
- If the user account configured for the named user does not exist or is not valid, then reply with 530
- If the specified password is not correct, then reply with 530
- Otherwise, reply with 230
- Version:
- $Revision: 182 $ - $Date: 2008-11-30 21:37:49 -0500 (Sun, 30 Nov 2008) $
- 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 |
PassCommandHandler
public PassCommandHandler()
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.