com.infoengine.SAK
Class ObjectWebject

java.lang.Object
  extended by com.infoengine.object.factory.Webject
      extended by com.infoengine.SAK.Webject
          extended by com.infoengine.SAK.ObjectWebject
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
ActionWebject

public class ObjectWebject
extends Webject

This class provides methods to construct and execute object webjects in applications and JSP pages.

Version:
1.0 2/19/2000
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.infoengine.object.factory.Webject
CLASS, DISPLAY, EXTERNAL, GROUP, GROUP_IN, GROUP_OUT, MESSAGE, OBJECT, OUTPUT, TASK, text, TYPE, UNKNOWN
 
Constructor Summary
ObjectWebject()
          Constructs an object webject with no name.
ObjectWebject(java.lang.String name)
          Constructs an object webject with a specific name.
 
Method Summary
 void invoke(Task task)
          Invokes the webject in the server context.
 boolean isInterruptable()
          Returns whether or not this task is intended to be interruptable accrossed VM boundaries.
 void setInterruptable(boolean interruptable)
          Sets the interruptable flag on this webject.
 
Methods inherited from class com.infoengine.SAK.Webject
addParam, getInputStream, getOutputStream, getProcessor, getProcessorClassName, getService, invoke, run, setInputStream, setInputStream, setInputStream, setOutputStream, setOutputStream, setParam, setService
 
Methods inherited from class com.infoengine.object.factory.Webject
addKey, addMessage, addMeta, addMetaValue, addOutput, addParam, addUniqueKey, addUniqueValue, addValue, addValue, addWebject, clearParams, clone, deepClone, getClassName, getDefinition, getGroupInName, getGroupInNames, getGroupOutName, getGroupOutNames, getKey, getKeys, getMessages, getMetaValue, getName, getNode, getOutput, getParam, getParamNames, getParams, getPassword, getType, getUserName, getValue, getValues, getWebjects, objectParamValue, objectParamValue, paramValue, paramValue, paramValues, printTree, removeAllWebjects, removeParam, removeParams, removeWebject, setClassName, setName, setParam, setPassword, setType, setUserName, setValue, toString, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectWebject

public ObjectWebject()
Constructs an object webject with no name.


ObjectWebject

public ObjectWebject(java.lang.String name)
Constructs an object webject with a specific name.

Parameters:
name - The name to be assigned to the webject.
Method Detail

setInterruptable

public void setInterruptable(boolean interruptable)
Sets the interruptable flag on this webject. If true and the webject is bound for an external webject processor then the current Thread can be interrupted and the corresponding thread in the webject processor VM will also be interrupted.

Parameters:
interruptable - Whether or not to allow interruption accrossed VM boundaries.

isInterruptable

public boolean isInterruptable()
Returns whether or not this task is intended to be interruptable accrossed VM boundaries.


invoke

public void invoke(Task task)
            throws IEException,
                   java.io.IOException
Invokes the webject in the server context. If the webject returns any output groups, they will be added to the collection maintained in the server context.

Overrides:
invoke in class Webject
Parameters:
task - The task associated with the webject.
Throws:
IEException - if the webject is not executed successfully.
java.io.IOException