org.mockftpserver.stub.command
Class SystCommandHandler
java.lang.Object
org.mockftpserver.core.command.AbstractCommandHandler
org.mockftpserver.core.command.AbstractTrackingCommandHandler
org.mockftpserver.core.command.AbstractStaticReplyCommandHandler
org.mockftpserver.stub.command.AbstractStubCommandHandler
org.mockftpserver.stub.command.SystCommandHandler
- All Implemented Interfaces:
- CommandHandler, InvocationHistory, ReplyTextBundleAware
public class SystCommandHandler
- extends AbstractStubCommandHandler
- implements CommandHandler
CommandHandler for the SYST (System) command. Send back a reply code of 215. By default,
return "WINDOWS" as the system name. You can customize the returned name by
setting the systemName property.
See the available system names listed in the Assigned Numbers document
(RFC 943).
Each invocation record stored by this CommandHandler contains no data elements.
- Version:
- $Revision: 194 $ - $Date: 2008-12-07 08:53:58 -0500 (Sun, 07 Dec 2008) $
- Author:
- Chris Mair
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystCommandHandler
public SystCommandHandler()
- Constructor. Initialize the replyCode.
handleCommand
public void handleCommand(Command command,
Session session,
InvocationRecord invocationRecord)
- Description copied from class:
AbstractTrackingCommandHandler
- Handle the specified command for the session. This method is declared to throw Exception,
allowing CommandHandler implementations to avoid unnecessary exception-handling. All checked
exceptions are expected to be wrapped and handled by the caller.
- Specified by:
handleCommand in class AbstractTrackingCommandHandler
- Parameters:
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 appropriate
setSystemName
public void setSystemName(String systemName)
- Set the systemName String to be returned by this command
- Parameters:
systemName - - the systemName
Copyright © 2014. All rights reserved.