public class UtilCommandFactory extends Factory
Modifier and Type | Class and Description |
---|---|
private class |
UtilCommandFactory.ChangeLogLevelBuilder |
private class |
UtilCommandFactory.ChangeLogLevelDirector |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,ICommandDirector> |
directors |
private static int |
INITIAL_SIZE |
Constructor and Description |
---|
UtilCommandFactory()
Creates a UtilCommandFactory.
|
Modifier and Type | Method and Description |
---|---|
ICommand |
GetCommand(java.lang.StringBuilder param,
NetworkCookie cookie,
java.lang.String object)
Gets the necessary command from the provided data.
|
private static int INITIAL_SIZE
private java.util.Map<java.lang.String,ICommandDirector> directors
public ICommand GetCommand(java.lang.StringBuilder param, NetworkCookie cookie, java.lang.String object) throws InvalidFactoryParameterException
Factory
GetCommand
in class Factory
param
- The file path from the URL provided to the server.object
- The serialized object.InvalidFactoryParameterException
- Thrown if there isn't a command associated with param.