org.mockftpserver.stub.command
Class PortCommandHandler
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.PortCommandHandler
- All Implemented Interfaces:
- CommandHandler, InvocationHistory, ReplyTextBundleAware
public class PortCommandHandler
- extends AbstractStubCommandHandler
- implements CommandHandler
CommandHandler for the PORT command. Send back a reply code of 200.
Each invocation record stored by this CommandHandler includes the following data element key/values:
HOST_KEY ("host") - the client data host (InetAddress) submitted on the invocation (from parameters 1-4)
PORT_KEY ("port") - the port number (Integer) submitted on the invocation (from parameter 5-6)
- Version:
- $Revision: 232 $ - $Date: 2009-06-13 19:18:01 -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 |
HOST_KEY
public static final String HOST_KEY
- See Also:
- Constant Field Values
PORT_KEY
public static final String PORT_KEY
- See Also:
- Constant Field Values
PortCommandHandler
public PortCommandHandler()
- Constructor. Initialize the replyCode.
handleCommand
public void handleCommand(Command command,
Session session,
InvocationRecord invocationRecord)
throws UnknownHostException
- Handle the command
- 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:
UnknownHostException- See Also:
CommandHandler.handleCommand(org.mockftpserver.core.command.Command, org.mockftpserver.core.session.Session)
Copyright © 2014. All rights reserved.