|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.servlet.util.CommandProcessor
public class CommandProcessor
| Field Summary | |
|---|---|
protected AssociationList |
commandDefinitions
Deprecated. Command Defintions |
protected AssociationList |
executedCommands
Deprecated. Executed Commands |
protected CommandProcessorCommandInterface |
lastCommand
Deprecated. Last executed command |
protected javax.servlet.http.HttpServletRequest |
request
Deprecated. request object |
protected javax.servlet.http.HttpServletResponse |
response
Deprecated. reponse object |
| Constructor Summary | |
|---|---|
CommandProcessor()
Deprecated. |
|
| Method Summary | |
|---|---|
boolean |
addStoredCommand(CommandProcessorViewInterface viewer,
CommandProcessorCommandInterface cmd)
Deprecated. Adds a stored command to the list. |
void |
addViewer(CommandProcessorViewInterface vi)
Deprecated. Adds a viewer to the list of views sending commands to the commandProcessor. |
void |
executeCommand(CommandProcessorCommandInterface cmd,
java.lang.Object obj)
Deprecated. Executes the command passed and writes the appropriate component to the output stream. |
boolean |
executedCommandExists(java.lang.String cmdName)
Deprecated. Checks to see if a command with the given name has been previously executed. |
CommandProcessorCommandInterface |
findStoredCommand(java.lang.String commandName)
Deprecated. |
protected CommandProcessorCommandInterface |
getCommand()
Deprecated. Internal use only |
CommandDefinition[] |
getCommandDefinitions()
Deprecated. Returns all registered command definitions. |
CommandProcessorCommandInterface[] |
getExecutedCommands()
Deprecated. Returns all previously executedCommands |
CommandProcessorCommandInterface |
getLastExecutedCommand()
Deprecated. Returns the most recently executed command. |
java.util.Locale |
getLocale()
Deprecated. Get the locale |
java.lang.String |
getName()
Deprecated. Returns the name of the CommandProcessor |
CommandProcessorCommandInterface |
getStoredCommand(java.lang.String cmdName)
Deprecated. Returns a stored command with a given name. |
protected CommandProcessorCommandInterface |
getStreamContentCommand(GetStreamInterface gsi,
java.lang.String contentType,
java.lang.String servletURL)
Deprecated. Internal use only |
CommandProcessorViewInterface[] |
getViewers()
Deprecated. Returns views for which the CommandProcessor is processing commands. |
CommandProcessorCommandInterface |
processCommand(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated. |
void |
registerCommand(CommandDefinition def)
Deprecated. Registers a command. |
void |
removeAllStoredCommands()
Deprecated. Remove all stored commands from the list. |
void |
removeAllStoredCommands(CommandProcessorViewInterface viewer)
Deprecated. Remove the stored commands for a particular viewer. |
void |
removeStoredCommand(java.lang.String cmdName)
Deprecated. Removes the first command with the given name. |
boolean |
removeViewer(CommandProcessorViewInterface vi)
Deprecated. Removes a viewer from the list of views sending commands to the commandProcessor |
void |
setLocale(java.util.Locale loc)
Deprecated. Set the locale |
void |
setName(java.lang.String name)
Deprecated. Sets the name of the CommandProcessor |
boolean |
storedCommandExists(java.lang.String cmdName)
Deprecated. Checks for the existance of a storedCommand |
void |
unregisterCommand(CommandDefinition def)
Deprecated. Unregisters a command |
void |
unregisterCommand(java.lang.String commandPrefix)
Deprecated. Unregisters a command, using the command's prefix to identify the commandDefinition. |
| Field Detail |
|---|
protected AssociationList executedCommands
protected AssociationList commandDefinitions
protected CommandProcessorCommandInterface lastCommand
protected javax.servlet.http.HttpServletResponse response
protected javax.servlet.http.HttpServletRequest request
| Constructor Detail |
|---|
public CommandProcessor()
| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
name - name of the CommandProcessor
public boolean addStoredCommand(CommandProcessorViewInterface viewer,
CommandProcessorCommandInterface cmd)
addStoredCommand in interface CommandProcessorInterfaceviewer - viewer associated with this command.cmd - command objectpublic CommandProcessorCommandInterface getStoredCommand(java.lang.String cmdName)
getStoredCommand in interface CommandProcessorInterfacecmdName - name of the desired command.public void removeStoredCommand(java.lang.String cmdName)
removeStoredCommand in interface CommandProcessorInterfacecmdName - command name to remove.public boolean storedCommandExists(java.lang.String cmdName)
storedCommandExists in interface CommandProcessorInterfacecmdName - name of stored commandpublic void removeAllStoredCommands()
removeAllStoredCommands in interface CommandProcessorInterfacepublic void removeAllStoredCommands(CommandProcessorViewInterface viewer)
removeAllStoredCommands in interface CommandProcessorInterfacepublic boolean executedCommandExists(java.lang.String cmdName)
executedCommandExists in interface CommandProcessorInterfacecmdName - name of stored command
public CommandProcessorCommandInterface processCommand(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
processCommand in interface CommandProcessorInterfacejava.io.IOExceptionpublic CommandProcessorCommandInterface findStoredCommand(java.lang.String commandName)
findStoredCommand in interface CommandProcessorInterface
public void executeCommand(CommandProcessorCommandInterface cmd,
java.lang.Object obj)
throws java.io.IOException
executeCommand in interface CommandProcessorInterfacecmd - command to be executedout - output stream to write table/graph etc to.
java.io.IOExceptionpublic CommandProcessorCommandInterface getLastExecutedCommand()
getLastExecutedCommand in interface CommandProcessorInterfacepublic void addViewer(CommandProcessorViewInterface vi)
addViewer in interface CommandProcessorInterfaceobject - implementing the CommandProcessorViewIterface.public boolean removeViewer(CommandProcessorViewInterface vi)
removeViewer in interface CommandProcessorInterfacevi - the view to remove.
public CommandProcessorViewInterface[] getViewers()
getViewers in interface CommandProcessorInterfacepublic void setLocale(java.util.Locale loc)
setLocale in interface CommandProcessorInterfacelocale - public java.util.Locale getLocale()
getLocale in interface CommandProcessorInterfacepublic void registerCommand(CommandDefinition def)
registerCommand in interface CommandProcessorInterfaceCommandDefinitionpublic void unregisterCommand(CommandDefinition def)
unregisterCommand in interface CommandProcessorInterfacepublic void unregisterCommand(java.lang.String commandPrefix)
unregisterCommand in interface CommandProcessorInterfacepublic CommandDefinition[] getCommandDefinitions()
getCommandDefinitions in interface CommandProcessorInterface
protected CommandProcessorCommandInterface getStreamContentCommand(GetStreamInterface gsi,
java.lang.String contentType,
java.lang.String servletURL)
protected CommandProcessorCommandInterface getCommand()
throws java.io.IOException
java.io.IOExceptionpublic CommandProcessorCommandInterface[] getExecutedCommands()
getExecutedCommands in interface CommandProcessorInterface
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||