org.mockftpserver.stub.command
Class EpsvCommandHandler
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.EpsvCommandHandler
- All Implemented Interfaces:
- CommandHandler, InvocationHistory, ReplyTextBundleAware
public class EpsvCommandHandler
- extends AbstractStubCommandHandler
- implements CommandHandler
CommandHandler for the EPSV (Extended Address Passive Mode) command. Request the Session to switch
to passive data connection mode. Return a reply code of 229, along with response text of the form:
"Entering Extended Passive Mode (|||PORT|)", where PORT is the 16-bit TCP port
address of the data connection on the server to which the client must connect.
See RFC2428 for more information.
Each invocation record stored by this CommandHandler contains no data elements.
- Version:
- $Revision: 230 $ - $Date: 2009-06-13 07:44:57 -0400 (Sat, 13 Jun 2009) $
- Author:
- Chris Mair
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EpsvCommandHandler
public EpsvCommandHandler()
- Constructor. Initialize the replyCode.
handleCommand
public void handleCommand(Command command,
Session session,
InvocationRecord invocationRecord)
throws IOException
- 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
- Throws:
IOException- See Also:
CommandHandler.handleCommand(org.mockftpserver.core.command.Command, org.mockftpserver.core.session.Session)
Copyright © 2014. All rights reserved.