|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.infoengine.object.factory.Webject
com.infoengine.SAK.Webject
public class Webject
This class provides methods to construct and execute webjects of any type in applications and JSP pages. This is the base class for other classes that are used to construct specific types of webjects.
| 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 | |
|---|---|
Webject()
Constructs a webject with no name or type. |
|
Webject(java.lang.String name)
Constructs a webject with a specific name but no type. |
|
Webject(java.lang.String name,
java.lang.String type)
Constructs a webject with a specific name and type. |
|
Webject(java.lang.String name,
java.lang.String type,
IeService service)
Constructs a webject with a specific name, type, and server context. |
|
| Method Summary | |
|---|---|
void |
addParam(java.lang.String name,
java.lang.String value)
Adds a parameter with a specific name and value to the webject. |
IeMultipartInputStream |
getInputStream()
Returns the input stream currently associated with the webject. |
java.io.OutputStream |
getOutputStream()
Returns the output stream currently associated with this webject. |
static Webject |
getProcessor(java.lang.String type)
Create a webject processor instance of a specified webject type. |
static java.lang.String |
getProcessorClassName(java.lang.String type)
Determines the name of the subclass that processes webjects of a specified type. |
IeService |
getService()
Returns the server context 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 using a specified task object. |
static void |
run(java.util.Vector webjects)
Runs a set of webjects, each in its own thread, and waits for all of them to complete. |
void |
setInputStream(IeMultipartInputStream is)
Sets the input stream from which the webject can read BLOB data. |
void |
setInputStream(java.io.InputStream is,
java.lang.String contentType,
java.lang.String name,
java.lang.String filename)
Sets the input stream from which the webject can read BLOB data. |
void |
setInputStream(javax.servlet.ServletRequest request)
Sets the input stream from which the webject can read BLOB data. |
void |
setOutputStream(java.io.OutputStream os)
Sets the output stream associated with this webject. |
void |
setOutputStream(java.io.Writer writer)
Sets the output stream associated with this webject. |
void |
setParam(java.lang.String name,
java.lang.String value)
Sets a new value for a specific parameter of the webject. |
void |
setService(IeService service)
Sets the server context associated with this webject. |
| 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 |
|---|
public Webject()
public Webject(java.lang.String name)
name - The name to be assigned to the webject.
public Webject(java.lang.String name,
java.lang.String type)
name - The name to be assigned to the webject.type - The type to be assigned to the webject.
public Webject(java.lang.String name,
java.lang.String type,
IeService service)
name - The name to be assigned to the webject.type - The type to be assigned to the webject.service - The server context to be assigned to the webject.| Method Detail |
|---|
public void setService(IeService service)
service - The new server context.public IeService getService()
public void setInputStream(java.io.InputStream is,
java.lang.String contentType,
java.lang.String name,
java.lang.String filename)
throws java.io.IOException
is - The input stream.contentType - The MIME content type associated with the stream.name - The form variable name, if any, associated with the stream.filename - The file name, if any, associated with the stream.
java.io.IOException - if the input stream can not be set.
public void setInputStream(javax.servlet.ServletRequest request)
throws java.io.IOException
request - The servlet request object from which the input
stream will be obtained.
java.io.IOException - if the input stream can not be set.public void setInputStream(IeMultipartInputStream is)
is - The Info*Engine multipart input stream from which the webject
can read BLOB data.public IeMultipartInputStream getInputStream()
public void setOutputStream(java.io.OutputStream os)
os - The new output stream.public void setOutputStream(java.io.Writer writer)
writer - The writer to be wrapped in an output stream.public java.io.OutputStream getOutputStream()
public void addParam(java.lang.String name,
java.lang.String value)
name - The name of the parameter.value - The value of the parameter.
public void setParam(java.lang.String name,
java.lang.String value)
name - The name of the parameter.value - The new value of the parameter.
public void invoke()
throws IEException,
java.io.IOException
IEException - if the webject is not executed successfully.
java.io.IOException
public void invoke(Task task)
throws IEException,
java.io.IOException
task - The task associated with the webject.
IEException - if the webject is not executed successfully.
java.io.IOExceptionpublic static java.lang.String getProcessorClassName(java.lang.String type)
type - The webject type
public static Webject getProcessor(java.lang.String type)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
type - The webject type
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
public static void run(java.util.Vector webjects)
throws IEException
webjects - The set of webjects to be run.
IEException - if the webject is not executed successfully.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||