org.apache.ftpserver.command.impl
Class DefaultCommandFactory

java.lang.Object
  extended by org.apache.ftpserver.command.impl.DefaultCommandFactory
All Implemented Interfaces:
CommandFactory

public class DefaultCommandFactory
extends java.lang.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.

Version:
$Rev$, $Date$
Author:
The Apache MINA Project (dev@mina.apache.org)

Constructor Summary
DefaultCommandFactory(java.util.Map<java.lang.String,Command> commandMap)
          Internal constructor, use CommandFactoryFactory instead
 
Method Summary
 Command getCommand(java.lang.String cmdName)
          Get command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCommandFactory

public DefaultCommandFactory(java.util.Map<java.lang.String,Command> commandMap)
Internal constructor, use CommandFactoryFactory instead

Method Detail

getCommand

public Command getCommand(java.lang.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.