javax.activation

Class CommandInfo

public class CommandInfo extends Object

Description of the result of a command request.
Constructor Summary
CommandInfo(String verb, String className)
Constructor.
Method Summary
StringgetCommandClass()
Returns the command class name.
StringgetCommandName()
Returns the command verb.
ObjectgetCommandObject(DataHandler dh, ClassLoader loader)
Returns the instantiated bean.

Constructor Detail

CommandInfo

public CommandInfo(String verb, String className)
Constructor.

Parameters: verb the command verb className the command class name

Method Detail

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)
Returns the instantiated bean. If the bean implements CommandObject, its setCommandContext method will be called.

Parameters: dh the data handler describing the command data loader the class loader used to instantiate the bean