|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.object.factory.Task
Field Summary | |
static String |
AUTH_MAP
|
static String |
CONTEXT
|
private static int |
counter
|
private IeRequest |
myRequest
|
private Webject |
myWebject
|
static String |
SOURCE
|
static String |
STATUS
|
static String |
TASKS
|
static String |
VDB
|
static String |
WEBJECTS
|
Constructor Summary | |
Task()
Constructs an unnamed task. |
|
Task(IeRequest req)
Construcst a task wrapper around an incoming request. |
|
Task(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(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(String data)
Deprecated. |
void |
addVdb(Group grp)
Adds a VDB group to this task. |
void |
addVdb(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. |
protected void |
checkWebjects()
|
void |
clearInput()
Deprecated. |
Task |
deepClone()
Creates a deep copy of this task. |
Element |
getAuthElement(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(String name)
Returns a named context group contained within this task. |
Group |
getContextGroup(String name)
Returns a named context group contained within this task. |
String |
getDesc()
Returns the description currently assigned to this task. |
Group |
getGroupIn()
Returns the default input group for this task. |
Group |
getGroupIn(String name)
Returns a named input group for this task. |
Group |
getGroupOut()
Returns the default output group from this task. |
Group |
getGroupOut(String name)
Returns a named output group contained within this task. |
IeCollection |
getInput()
Deprecated. |
Group |
getInput(String name)
Deprecated. |
Enumeration |
getInputGroups()
Returns all input groups contained within this task. |
Enumeration |
getInputs()
Deprecated. |
IeMultipartInputStream |
getInputStream()
Returns the input stream currently assigned to this task. |
String |
getMessage()
Returns the concatenation of the error messages attached to this task. |
Enumeration |
getMessages()
Returns the error messages attached to this task. |
IeMultipartInputStream |
getMimeInputStream()
Deprecated. use getInputStream instead |
String |
getName()
Returns the name of this task. |
IeCollection |
getOutput()
Deprecated. |
Group |
getOutput(String name)
Deprecated. |
Enumeration |
getOutputGroups()
Returns all output groups contained within this task. |
IeMultipartOutputStream |
getOutputStream()
Returns the output stream currently assigned to this task. |
String |
getPassword()
Returns the password currently assigned to this task. |
IeRequest |
getRequest()
Returns the standard request used to pass this task to a service. |
String |
getSource()
Returns the source currently assigned to this task. |
int |
getStatus()
Returns the status of this task |
String |
getType()
Returns the type of this task. |
String |
getUserName()
Returns the user name currently assigned to this task. |
Enumeration |
getVariables(String lex,
Param param)
|
IeCollection |
getVdb()
Returns the collection containing VDB groups for the task. |
Group |
getVdb(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(String name)
Returns a named VDB group contained within this task. |
Webject |
getWebject()
Returns the webject that this task wraps. |
protected static IeRequest |
newStructure()
Builds a new empty request for this task. |
private static int |
nextSeqNo()
|
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(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(String name)
Sets the name of this task. |
void |
setOutputStream(IeMultipartOutputStream out)
Sets the output stream to be used by this task. |
void |
setPassword(String pwd)
Sets the password of this task. |
void |
setSource(String source)
Sets the source for this task. |
void |
setType(String type)
Sets the type of this task. |
void |
setUserName(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. |
Enumeration |
subVariables(String in)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static int counter
public static final String AUTH_MAP
public static final String CONTEXT
public static final String SOURCE
public static final String TASKS
public static final String WEBJECTS
public static final String VDB
public static final String STATUS
private IeRequest myRequest
private Webject myWebject
Constructor Detail |
public Task()
public Task(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 taskMethod Detail |
public IeRequest getRequest()
public void addError(String message, int status)
message
- The error message.status
- The status code.public int getStatus()
public Enumeration getMessages()
public String getMessage()
public Element getAuthElement(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 String getName()
public void setName(String name)
name
- The task's new name.public void setPassword(String pwd)
pwd
- The task's new password.public String getPassword()
public void setUserName(String name)
name
- The task's new user name.public String getUserName()
public void setDesc(String desc)
desc
- The task's new description.public String getDesc()
public String getType()
public void setType(String type)
type
- The task's new type.public String getSource()
public void setSource(String source)
source
- The task's new source string.public Group getContextGroup(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(String name)
name
- The name of the desired input group.
public Group getVdbIn()
public Group getVdbIn(String name)
name
- The name of the desired VDB group.
public Enumeration getInputGroups()
public void addOutput(String data)
data
- The string to add to the output of this task.public void addVdb(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(String name)
name
- The name of the desired output group.
public Enumeration getOutputGroups()
public Webject bindParams()
public Webject bindParams(Webject webject)
webject
- The webject to which parameters will be bound.
public Enumeration subVariables(String in)
public Enumeration getVariables(String lex, Param param)
private static int nextSeqNo()
public IeCollection getContext()
public IeGroup getContext(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 Enumeration getInputs()
public IeCollection getInput()
public Group getInput(String name)
name
- The name of the input group desired.
public IeCollection getOutput()
public Group getOutput(String name)
name
- The name of the output group desired.
public IeCollection getVdb()
public Group getVdb(String name)
name
- The name of the VDB group desired.
protected static IeRequest newStructure()
protected void checkWebjects()
public Task deepClone()
public void printTree()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |