|
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 com.sas.collection.AssociationList |
commandDefinitions
Deprecated. Command Defintions |
protected com.sas.collection.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 com.sas.collection.AssociationList executedCommands
protected com.sas.collection.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 CommandProcessorpublic boolean addStoredCommand(CommandProcessorViewInterface viewer, CommandProcessorCommandInterface cmd)
addStoredCommand
in interface CommandProcessorInterface
viewer
- viewer associated with this command.cmd
- command objectpublic CommandProcessorCommandInterface getStoredCommand(java.lang.String cmdName)
getStoredCommand
in interface CommandProcessorInterface
cmdName
- name of the desired command.public void removeStoredCommand(java.lang.String cmdName)
removeStoredCommand
in interface CommandProcessorInterface
cmdName
- command name to remove.public boolean storedCommandExists(java.lang.String cmdName)
storedCommandExists
in interface CommandProcessorInterface
cmdName
- name of stored commandpublic void removeAllStoredCommands()
removeAllStoredCommands
in interface CommandProcessorInterface
public void removeAllStoredCommands(CommandProcessorViewInterface viewer)
removeAllStoredCommands
in interface CommandProcessorInterface
public boolean executedCommandExists(java.lang.String cmdName)
executedCommandExists
in interface CommandProcessorInterface
cmdName
- name of stored commandpublic CommandProcessorCommandInterface processCommand(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
processCommand
in interface CommandProcessorInterface
java.io.IOException
public 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 CommandProcessorInterface
cmd
- command to be executedout
- output stream to write table/graph etc to.
java.io.IOException
public CommandProcessorCommandInterface getLastExecutedCommand()
getLastExecutedCommand
in interface CommandProcessorInterface
public void addViewer(CommandProcessorViewInterface vi)
addViewer
in interface CommandProcessorInterface
object
- implementing the CommandProcessorViewIterface.public boolean removeViewer(CommandProcessorViewInterface vi)
removeViewer
in interface CommandProcessorInterface
vi
- the view to remove.
public CommandProcessorViewInterface[] getViewers()
getViewers
in interface CommandProcessorInterface
public void setLocale(java.util.Locale loc)
setLocale
in interface CommandProcessorInterface
locale
- public java.util.Locale getLocale()
getLocale
in interface CommandProcessorInterface
public void registerCommand(CommandDefinition def)
registerCommand
in interface CommandProcessorInterface
CommandDefinition
public void unregisterCommand(CommandDefinition def)
unregisterCommand
in interface CommandProcessorInterface
public void unregisterCommand(java.lang.String commandPrefix)
unregisterCommand
in interface CommandProcessorInterface
public 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.IOException
public CommandProcessorCommandInterface[] getExecutedCommands()
getExecutedCommands
in interface CommandProcessorInterface
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |