org.apache.ftpserver.command.impl
Class DefaultCommandFactory
java.lang.Object
org.apache.ftpserver.command.impl.DefaultCommandFactory
- All Implemented Interfaces:
- CommandFactory
public class DefaultCommandFactory
- extends Object
- implements CommandFactory
Internal class, do not use directly.
Command factory to return appropriate command implementation depending on the
FTP request command string.
Internal class, do not use directly.
- Author:
- Apache MINA Project
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCommandFactory
public DefaultCommandFactory(Map<String,Command> commandMap)
- Internal constructor, use
CommandFactoryFactory
instead
getCommand
public Command getCommand(String cmdName)
- Get command. Returns null if not found.
- Specified by:
getCommand
in interface CommandFactory
- Parameters:
cmdName
- The name of the command to create
- Returns:
- The
Command
matching the provided name, or
null if no such command exists.
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.