⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
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.
Author:

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.

Constructor Details

CommandInfo

public CommandInfo(String verb, String className)

Constructor.

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

Method Details

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