|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ftpserver.command.CommandFactoryFactory
public class CommandFactoryFactory
Factory for CommandFactory instances
| Constructor Summary | |
|---|---|
CommandFactoryFactory()
|
|
| Method Summary | |
|---|---|
void |
addCommand(java.lang.String commandName,
Command command)
Add or override a command. |
CommandFactory |
createCommandFactory()
Create an CommandFactory based on the configuration on the factory. |
java.util.Map<java.lang.String,Command> |
getCommandMap()
Get the installed commands |
boolean |
isUseDefaultCommands()
Are default commands used? |
void |
setCommandMap(java.util.Map<java.lang.String,Command> commandMap)
Set commands to add or override to the default commands |
void |
setUseDefaultCommands(boolean useDefaultCommands)
Sets whether the default commands will be used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandFactoryFactory()
| Method Detail |
|---|
public CommandFactory createCommandFactory()
CommandFactory based on the configuration on the factory.
CommandFactorypublic boolean isUseDefaultCommands()
public void setUseDefaultCommands(boolean useDefaultCommands)
useDefaultCommands - true if default commands should be usedpublic java.util.Map<java.lang.String,Command> getCommandMap()
public void addCommand(java.lang.String commandName,
Command command)
commandName - The command name, e.g. STORcommand - The commandpublic void setCommandMap(java.util.Map<java.lang.String,Command> commandMap)
commandMap - The map of commands, the key will be used to map to requests.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||