javax.activation
Class CommandInfo
java.lang.Object
javax.activation.CommandInfo
public class CommandInfo
extends java.lang.Object
Description of the result of a command request.
CommandInfo(String verb, String className) - Constructor.
|
CommandInfo
public CommandInfo(String verb,
String className)
Constructor.
verb
- the command verbclassName
- the command class name
getCommandClass
public String getCommandClass()
Returns the command class name.
getCommandName
public String getCommandName()
Returns the command verb.
getCommandObject
public Object getCommandObject(DataHandler dh,
ClassLoader loader)
throws IOException,
ClassNotFoundException
Returns the instantiated bean.
If the bean implements CommandObject
, its
setCommandContext
method will be called.
dh
- the data handler describing the command dataloader
- the class loader used to instantiate the bean