com.infoengine.SAK
Class DisplayWebject

java.lang.Object
  extended by com.infoengine.object.factory.Webject
      extended by com.infoengine.SAK.Webject
          extended by com.infoengine.SAK.DisplayWebject
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class DisplayWebject
extends Webject

This class provides methods to construct and execute display 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
DisplayWebject()
          Constructs a display webject with no name.
DisplayWebject(java.lang.String name)
          Constructs a display webject with a specific name.
 
Method Summary
 java.io.ByteArrayOutputStream getByteOutput()
          Returns a ByteArrayOutputStream containing the output currently associated with this webject.
 void invoke()
          Invokes the webject in the server context.
 void invoke(Task task)
          Invokes the webject in the server context.
 java.lang.String toString()
          Returns a string containing the output currently associated with this webject.
 
Methods inherited from class com.infoengine.SAK.Webject
addParam, getInputStream, getOutputStream, getProcessor, getProcessorClassName, getService, 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, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DisplayWebject

public DisplayWebject()
Constructs a display webject with no name.


DisplayWebject

public DisplayWebject(java.lang.String name)
Constructs a display webject with a specific name.

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

toString

public java.lang.String toString()
Returns a string containing the output currently associated with this webject. Usually, the output is generated as a result of calling the invoke method.

Overrides:
toString in class Webject
Returns:
A String containing the output associated with the webject.

getByteOutput

public java.io.ByteArrayOutputStream getByteOutput()
Returns a ByteArrayOutputStream containing the output currently associated with this webject. Usually, the output is generated as a result of calling the invoke method.

Returns:
A ByteArrayOutputStream containing the output associated with the webject.

invoke

public void invoke()
            throws IEException,
                   java.io.IOException
Invokes the webject in the server context. Output generated by the webject can be retrieved using the toString method.

Overrides:
invoke in class Webject
Throws:
IEException - if the webject is not executed successfully.
java.io.IOException - if an I/O error occurs while the webject is generating output.

invoke

public void invoke(Task task)
            throws IEException,
                   java.io.IOException
Invokes the webject in the server context. Output generated by the webject can be retrieved using the toString method.

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 - if an I/O error occurs while the webject is generating output.