javax.activation
Class CommandInfo

java.lang.Object
  extended byjavax.activation.CommandInfo

public class CommandInfo
extends Object

Description of the result of a command request.


Constructor Summary
CommandInfo(String verb, String className)
          Constructor.
 
Method Summary
 String getCommandClass()
          Returns the command class name.
 String getCommandName()
          Returns the command verb.
 Object getCommandObject(DataHandler dh, ClassLoader loader)
          Returns the instantiated bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandInfo

public CommandInfo(String verb,
                   String className)
Constructor.

Parameters:
verb - the command verb
className - the command class name
Method Detail

getCommandName

public String getCommandName()
Returns the command verb.


getCommandClass

public String getCommandClass()
Returns the command class name.


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.

Parameters:
dh - the data handler describing the command data
loader - the class loader used to instantiate the bean
Throws:
IOException
ClassNotFoundException