|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.infoengine.object.factory.Task
public class Task
| Field Summary | |
|---|---|
static java.lang.String |
AUTH_MAP
|
static java.lang.String |
CONTEXT
|
static java.lang.String |
SOURCE
|
static java.lang.String |
STATUS
|
static java.lang.String |
TASKS
|
static java.lang.String |
VDB
|
static java.lang.String |
WEBJECTS
|
| Constructor Summary | |
|---|---|
Task()
Constructs an unnamed task. |
|
Task(IeRequest req)
Construcst a task wrapper around an incoming request. |
|
Task(java.lang.String name)
Constructs a named task. |
|
Task(Webject webject)
Constructs a task wrapper around an existing webject. |
|
| Method Summary | |
|---|---|
void |
addContext(Group grp)
Adds a context group to this task. |
void |
addError(java.lang.String message,
int status)
Adds an error message and status to this task. |
void |
addInput(Group grp)
Deprecated. |
void |
addOutput(Group grp)
Deprecated. |
void |
addOutput(java.lang.String data)
Deprecated. |
void |
addVdb(Group grp)
Adds a VDB group to this task. |
void |
addVdb(java.lang.String data)
Adds an output string to this task. |
Webject |
bindParams()
Binds parameters to the webject wrapped in this task. |
Webject |
bindParams(Webject webject)
Binds parameters to a specific webject. |
void |
clearInput()
Deprecated. |
Task |
deepClone()
Creates a deep copy of this task. |
Element |
getAuthElement(java.lang.String key)
Returns the authentication map element associated with a specified instance key. |
IeCollection |
getContext()
Returns a collection containing the context groups of this task. |
IeGroup |
getContext(java.lang.String name)
Returns a named context group contained within this task. |
Group |
getContextGroup(java.lang.String name)
Returns a named context group contained within this task. |
java.lang.String |
getDesc()
Returns the description currently assigned to this task. |
Group |
getGroupIn()
Returns the default input group for this task. |
Group |
getGroupIn(java.lang.String name)
Returns a named input group for this task. |
Group |
getGroupOut()
Returns the default output group from this task. |
Group |
getGroupOut(java.lang.String name)
Returns a named output group contained within this task. |
IeCollection |
getInput()
Deprecated. |
Group |
getInput(java.lang.String name)
Deprecated. |
java.util.Enumeration |
getInputGroups()
Returns all input groups contained within this task. |
java.util.Enumeration |
getInputs()
Deprecated. |
IeMultipartInputStream |
getInputStream()
Returns the input stream currently assigned to this task. |
java.lang.String |
getMessage()
Returns the concatenation of the error messages attached to this task. |
java.util.Enumeration |
getMessages()
Returns the error messages attached to this task. |
IeMultipartInputStream |
getMimeInputStream()
Deprecated. use getInputStream instead |
java.lang.String |
getName()
Returns the name of this task. |
IeCollection |
getOutput()
Deprecated. |
Group |
getOutput(java.lang.String name)
Deprecated. |
java.util.Enumeration |
getOutputGroups()
Returns all output groups contained within this task. |
IeMultipartOutputStream |
getOutputStream()
Returns the output stream currently assigned to this task. |
java.lang.String |
getPassword()
Returns the password currently assigned to this task. |
IeRequest |
getRequest()
Returns the standard request used to pass this task to a service. |
java.lang.String |
getSource()
Returns the source currently assigned to this task. |
int |
getStatus()
Returns the status of this task |
java.lang.String |
getType()
Returns the type of this task. |
java.lang.String |
getUserName()
Returns the user name currently assigned to this task. |
java.util.Enumeration |
getVariables(java.lang.String lex,
Param param)
|
IeCollection |
getVdb()
Returns the collection containing VDB groups for the task. |
Group |
getVdb(java.lang.String name)
Returns a named group from the collection containing VDB groups for the task. |
Group |
getVdbIn()
Returns the default VDB group for this task. |
Group |
getVdbIn(java.lang.String name)
Returns a named VDB group contained within this task. |
Webject |
getWebject()
Returns the webject that this task wraps. |
void |
printTree()
Prints the structure of the task to System.out. |
void |
removeInput(Group grp)
Deprecated. |
void |
removeVdb(Group grp)
Removes a VDB group from this task. |
void |
setContext(IeCollection collection)
Sets the collection containing the context groups for this task. |
void |
setDesc(java.lang.String desc)
Sets the description of this task. |
void |
setInput(IeCollection collection)
Deprecated. |
void |
setInputStream(IeMultipartInputStream in)
Sets the input stream to be used by this task. |
void |
setName(java.lang.String name)
Sets the name of this task. |
void |
setOutputStream(IeMultipartOutputStream out)
Sets the output stream to be used by this task. |
void |
setPassword(java.lang.String pwd)
Sets the password of this task. |
void |
setSource(java.lang.String source)
Sets the source for this task. |
void |
setType(java.lang.String type)
Sets the type of this task. |
void |
setUserName(java.lang.String name)
Sets the user name of this task. |
void |
setVdb(IeCollection collection)
Sets the collection containing the VDB groups for this task. |
void |
setWebject(Webject webject)
Sets the webject that this task wraps. |
java.util.Enumeration |
subVariables(java.lang.String in)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String AUTH_MAP
public static final java.lang.String CONTEXT
public static final java.lang.String SOURCE
public static final java.lang.String TASKS
public static final java.lang.String WEBJECTS
public static final java.lang.String VDB
public static final java.lang.String STATUS
| Constructor Detail |
|---|
public Task()
public Task(java.lang.String name)
name - the name to be assigned to the taskpublic Task(Webject webject)
webject - the webject to be wrapped in a taskpublic Task(IeRequest req)
req - the request to be wrapped in a task| Method Detail |
|---|
public IeRequest getRequest()
public void addError(java.lang.String message,
int status)
message - The error message.status - The status code.public int getStatus()
public java.util.Enumeration getMessages()
public java.lang.String getMessage()
public Element getAuthElement(java.lang.String key)
key - the instance key of the element to find
public Webject getWebject()
public void setInputStream(IeMultipartInputStream in)
in - the input streampublic IeMultipartInputStream getInputStream()
public IeMultipartInputStream getMimeInputStream()
public void setOutputStream(IeMultipartOutputStream out)
out - the output streampublic IeMultipartOutputStream getOutputStream()
public void setWebject(Webject webject)
webject - The webject to be wrapped in this task.public java.lang.String getName()
public void setName(java.lang.String name)
name - The task's new name.public void setPassword(java.lang.String pwd)
pwd - The task's new password.public java.lang.String getPassword()
public void setUserName(java.lang.String name)
name - The task's new user name.public java.lang.String getUserName()
public void setDesc(java.lang.String desc)
desc - The task's new description.public java.lang.String getDesc()
public java.lang.String getType()
public void setType(java.lang.String type)
type - The task's new type.public java.lang.String getSource()
public void setSource(java.lang.String source)
source - The task's new source string.public Group getContextGroup(java.lang.String name)
name - The name of the desired context group.
public void clearInput()
public void removeInput(Group grp)
grp - The group of objects to be removed.public void removeVdb(Group grp)
grp - The group of objects to be removed.public void addInput(Group grp)
grp - A group of objects for input to this task.public void addVdb(Group grp)
grp - The group to add.public Group getGroupIn()
public Group getGroupIn(java.lang.String name)
name - The name of the desired input group.
public Group getVdbIn()
public Group getVdbIn(java.lang.String name)
name - The name of the desired VDB group.
public java.util.Enumeration getInputGroups()
public void addOutput(java.lang.String data)
data - The string to add to the output of this task.public void addVdb(java.lang.String data)
data - The string to add to the output of this task.public void addOutput(Group grp)
grp - A group of objects to be added to the output of this task.public Group getGroupOut()
public Group getGroupOut(java.lang.String name)
name - The name of the desired output group.
public java.util.Enumeration getOutputGroups()
public Webject bindParams()
public Webject bindParams(Webject webject)
webject - The webject to which parameters will be bound.
public java.util.Enumeration subVariables(java.lang.String in)
public java.util.Enumeration getVariables(java.lang.String lex,
Param param)
public IeCollection getContext()
public IeGroup getContext(java.lang.String name)
public void setContext(IeCollection collection)
collection - the new collection to be established as the one
containing context groups for this task.public void setInput(IeCollection collection)
collection - the new collection to be established as the one
containing input groups for this task.public void setVdb(IeCollection collection)
collection - the new collection to be established as the one
containing VDB groups for this task.public void addContext(Group grp)
grp - The context group (FORM, SERVER, etc.)public java.util.Enumeration getInputs()
public IeCollection getInput()
public Group getInput(java.lang.String name)
name - The name of the input group desired.
public IeCollection getOutput()
public Group getOutput(java.lang.String name)
name - The name of the output group desired.
public IeCollection getVdb()
public Group getVdb(java.lang.String name)
name - The name of the VDB group desired.
public Task deepClone()
public void printTree()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||