|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.DefaultCommandFactory
public class DefaultCommandFactory
Command factory to return appropriate command implementation
depending on the FTP request command string.
Used a default setup of commands which can be appended or
overriden using #setCommandMap(HashMap)
.
Constructor Summary | |
---|---|
DefaultCommandFactory()
|
Method Summary | |
---|---|
Command |
getCommand(java.lang.String cmdName)
Get command. |
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 DefaultCommandFactory()
Method Detail |
---|
public 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 setCommandMap(java.util.Map<java.lang.String,Command> commandMap)
commandMap
- The map of commands, the key will be used to map
to requests.public Command getCommand(java.lang.String cmdName)
getCommand
in interface CommandFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |