javax.activation
Class CommandInfo

java.lang.Object
  extended by javax.activation.CommandInfo

public class CommandInfo
extends java.lang.Object

Description of the result of a command request.

Version:
1.1
Author:
Chris Burdess

Constructor Summary
CommandInfo(java.lang.String verb, java.lang.String className)
          Constructor.
 
Method Summary
 java.lang.String getCommandClass()
          Returns the command class name.
 java.lang.String getCommandName()
          Returns the command verb.
 java.lang.Object getCommandObject(DataHandler dh, java.lang.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(java.lang.String verb,
                   java.lang.String className)
Constructor.

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

getCommandName

public java.lang.String getCommandName()
Returns the command verb.


getCommandClass

public java.lang.String getCommandClass()
Returns the command class name.


getCommandObject

public java.lang.Object getCommandObject(DataHandler dh,
                                         java.lang.ClassLoader loader)
                                  throws java.io.IOException,
                                         java.lang.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:
java.io.IOException
java.lang.ClassNotFoundException


© Copyright 2002 The Free Software Foundation, All rights reserved