|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.ebai.RequestContext
Description...
Examples...
Field Summary | |
static Hashtable |
ebaiGlobalHashtable
|
(package private) static String |
ID
|
private com.infoengine.log.LogWriter |
logWriter
|
private Request |
myRequest
|
private Task |
myTask
|
private Webject |
myWebject
|
private IeMultipartOutputStream |
output
|
private Task |
resultTask
|
protected StringBuffer |
scratch
|
private String |
serviceName
|
private String |
webjectPath
|
Constructor Summary | |
RequestContext(Request request,
String servName,
com.infoengine.log.LogWriter log)
Construct the RequestContext. |
Method Summary | |
void |
addInputGroup(Group grp)
Add an input group to this task. |
void |
addMetaValue(String name,
String value)
Adds the specified meta name and value to this webject. |
void |
addOutputGroup(Group grp)
Add an output group to this task. |
void |
addOutputString(String str)
Add an output string to this task. |
protected void |
addParam(Param param)
Receive a parameter and add the parameter to this webject. |
void |
addWebjectOutput(String str)
Adds an output message to this webject. |
void |
clearAllGlobalObjects()
|
protected void |
clearParams()
Remove all parameters from this webject. |
Enumeration |
getAllGlobalObjects()
|
String |
getClassName()
Return a class name from a webject. |
Object |
getGlobalObject(String name)
|
Enumeration |
getGlobalObjectKeys()
|
Group |
getGroupIn()
Get the default input group for this task. |
Group |
getGroupIn(String name)
Get a named input group for this task. |
String |
getGroupInName()
Return a group in name from a webject. |
Enumeration |
getGroupInNames()
Return a list of group in names from a webject. |
Group |
getGroupOut()
Get the output group from this task. |
Group |
getGroupOut(String name)
Get a named output group from this task. |
String |
getGroupOutName()
Return a group out name from a webject. |
Enumeration |
getGroupOutNames()
Return a list of group out names from a webject. |
Group |
getInputGroup(String name)
Get an input group from this task. |
Enumeration |
getInputGroups()
Get a list of all input groups for this task. |
com.infoengine.log.LogWriter |
getLogWriter()
Get this logwriter's name. |
Enumeration |
getMessages()
Get the error messages attached to this task. |
String |
getMetaValue(String name)
Gets the specified meta value from this webject. |
Group |
getOutputGroup(String name)
Get a named output group from this task. |
Enumeration |
getOutputGroups()
Get an Enumerated list of output groups from this task. |
protected Param |
getParam(String name)
Get a named parameter for this webject. |
Enumeration |
getParamNames()
Gets a unique list of names of all the parameters that are defined for this webject. |
protected Enumeration |
getParams(String name)
Get all the parameters for this webject that have a specified name. |
String |
getParamValue(String name)
Get the value of a named parameter for this webject. |
String |
getParamValue(String name,
String defaulty)
Return the value of a named parameter for this webject. |
Enumeration |
getParamValues(String name)
Return all values of a named parameter for this webject. |
String |
getPassword()
Return a webject's password. |
Properties |
getProperties()
Get a list of Properties that you passed or set to the adapter. |
String |
getProperty(String serviceName,
String key)
Searches for the property for the specified service name and key in the property list. |
String |
getProperty(String serviceName,
String key,
String defValue)
Searches for the property for the specified service name and key in the property list. |
Request |
getRequest()
Return the constructed request. |
IeRequest |
getResponse()
|
Task |
getResultTask()
|
String |
getServiceName()
Return the service name. |
int |
getStatus()
Get the status of this task |
Task |
getTask()
Get the current task. |
String |
getUserName()
Return a webject's user name. |
Webject |
getWebject()
Get the current webject. |
String |
getWebjectName()
Return a webject's name. |
Enumeration |
getWebjectOutput()
Gets any output generated by this webject. |
String |
getWebjectPath()
If a webject path exists, it is returned. |
boolean |
isLogVerbose()
Check if the log file exists. |
void |
logWrite(Object X)
Write to the log file. |
protected void |
logWrite(String message,
Object[] obj)
|
void |
logWrite(Throwable X)
Write an exception to the log file. |
void |
print(Object X)
Write the parameter to the PrintWriter stream. |
void |
readBlobStream(OutputStream fos)
Put the file or binary data into the output stream. |
Vector |
readGroupIn()
Read the metadata from group-in into the vector structure. |
Vector |
readGroupIn(String GroupInName)
Read the metadata from group-in into the vector structure. |
Object |
removeGlobalObject(String name)
|
void |
removeInputGroup(Group grp)
Remove an input group from this task. |
void |
removeInputGroups()
Remove all input groups from this task. |
protected void |
removeParam(Param param)
Remove a parameter from this webject. |
void |
removeParams(String name)
Remove all parameters from this webject that have the specified name. |
void |
setClassName(String cls)
Receive a string and set a class name with a webject. |
void |
setGlobalObject(String name,
Object obj)
|
void |
setGlobalObject(String name,
Object obj,
boolean override)
|
protected void |
setMessage(String message,
Object[] obj,
int status)
|
protected void |
setParam(Param param)
Set a new parameter to this webject. |
void |
setPassword(String pwd)
Receive a string and set the webject's password. |
void |
setProperties(Properties propers)
This method does nothing but is provided for compatibility with IE 4.0 |
protected void |
setRequest(Request rqt)
Initialize the main wrapper variables. |
void |
setResultTask(Task tsk)
|
void |
setServiceName(String svName)
Initialize the service name. |
void |
setTask(Task tsk)
Receive a task and get the webject name. |
void |
setUserName(String uid)
Receive a string and set the webject's user ID. |
void |
setWebject(Webject webj)
Receive a webject and initialize the webject instance. |
void |
setWebjectName(String name)
Receive a string and set the webject's name. |
void |
setWebjectPath(String path)
Receive a path and set the webject path. |
boolean |
webjectNameMatch(String webType)
Check to see if the current webject's name equals the one passed in. |
void |
writeBlobStream(InputStream fis,
String filename,
String contentType)
Stream the binary file back to your browser through the output stream. |
void |
writeGroupOut(Hashtable htab)
Write the metadata from the hash table structure into the group out. |
void |
writeGroupOut(Hashtable htab,
String GroupOutName)
Write the metadata from the hash table structure into the named group out. |
void |
writeGroupOut(Vector nodeVec)
Write the metadata from the vector structure into the group out. |
void |
writeGroupOut(Vector nodeVec,
String GroupOutName)
Write the metadata from the vector structure into the named group out. |
void |
writeGroupOut2(Vector nodeVec)
Write the metadata from the vector structure into the group out. |
void |
writeGroupOut2(Vector nodeVec,
String GroupOutName)
Write the metadata from the vector structure into the group out. |
void |
writeStatus(String status)
write some status |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final String ID
private String serviceName
private IeMultipartOutputStream output
private com.infoengine.log.LogWriter logWriter
private String webjectPath
private Request myRequest
private Webject myWebject
private Task myTask
private Task resultTask
public static Hashtable ebaiGlobalHashtable
protected StringBuffer scratch
Constructor Detail |
public RequestContext(Request request, String servName, com.infoengine.log.LogWriter log)
Method Detail |
protected void setRequest(Request rqt)
public Request getRequest()
public com.infoengine.log.LogWriter getLogWriter()
public void logWrite(Object X)
X
- The parameter to be sent to the logprotected void logWrite(String message, Object[] obj)
public void logWrite(Throwable X)
X
- The parameter/exception to be sent to the logpublic void print(Object X)
X
- The parameter to be sent to the PrintWriterpublic boolean isLogVerbose()
public void setTask(Task tsk)
tsk
- The parameter containing the task and webject information.public Task getTask()
public void setResultTask(Task tsk)
public Task getResultTask()
public void setWebject(Webject webj)
webj
- The parameter containing the webject information.public Webject getWebject()
public boolean webjectNameMatch(String webType)
webType
- The name of the match check webject.
public void setProperties(Properties propers)
propers
- The Properties that you would like to save.public Properties getProperties()
public String getProperty(String serviceName, String key)
serviceName
- The serviceName for the adapter.key
- The property key.
public String getProperty(String serviceName, String key, String defValue)
serviceName
- The serviceName for the adapter.key
- The property key.defValue
- The default value if no value found with the specified key.
public void setWebjectPath(String path)
path
- The parameter containing the webject's path.public String getWebjectPath()
public void setGlobalObject(String name, Object obj, boolean override)
public void setGlobalObject(String name, Object obj)
public Object getGlobalObject(String name)
public Object removeGlobalObject(String name)
public Enumeration getGlobalObjectKeys()
public Enumeration getAllGlobalObjects()
public void clearAllGlobalObjects()
public String getWebjectName()
public void setWebjectName(String name)
name
- The parameter containing the webject's name.public String getPassword()
public void setPassword(String pwd)
pwd
- The parameter containing the webject's password.public String getUserName()
public void setUserName(String uid)
uid
- The parameter containing the webject's user ID.public String getClassName()
public void setClassName(String cls)
cls
- The parameter containing the class name.public String getGroupInName()
public Enumeration getGroupInNames()
public String getGroupOutName()
public Enumeration getGroupOutNames()
protected void clearParams()
protected void addParam(Param param)
param
- The parameter to be added.protected void setParam(Param param)
param
- A new parameter.protected void removeParam(Param param)
param
- The parameter to be removed.public void removeParams(String name)
name
- The name of the parameters to be removed.public String getParamValue(String name)
name
- The name of the desired parameter.
public String getParamValue(String name, String defaulty)
name
- The name of the desired parameter.defaulty
- The default value to use if the parameter is not defined.
public Enumeration getParamValues(String name)
name
- The name of the desired parameter.
protected Param getParam(String name)
name
- The name of the desired parameter.
protected Enumeration getParams(String name)
name
- The name of the desired parameters. A null name gets all parameters.
public Enumeration getParamNames()
public String getMetaValue(String name)
name
- The name of the desired meta value.
public void addMetaValue(String name, String value)
name
- The name of the new meta value.value
- The value of the named meta.public Enumeration getWebjectOutput()
public void addWebjectOutput(String str)
str
- An output string generated by this webject.public int getStatus()
public Enumeration getMessages()
public void removeInputGroup(Group grp)
grp
- The group of objects to be removed.public void removeInputGroups()
public void addInputGroup(Group grp)
grp
- A group of objects for input to this task.public Group getInputGroup(String name)
name
- The name of the group to get.
public Enumeration getInputGroups()
public Group getGroupIn()
public Group getGroupIn(String name)
name
- The name of the desired input group.
public void addOutputString(String str)
str
- The string output of this task.public void addOutputGroup(Group grp)
grp
- A group of objects output by this task.public Group getGroupOut()
public Group getGroupOut(String name)
name
- The name of the desired output group.
public Group getOutputGroup(String name)
name
- The name of the desired output group.
public Enumeration getOutputGroups()
public IeRequest getResponse()
public void setServiceName(String svName)
svName
- The name of the service.public String getServiceName()
public void writeStatus(String status)
status
- The status string you would like for outputprotected void setMessage(String message, Object[] obj, int status)
public void writeBlobStream(InputStream fis, String filename, String contentType)
fis
- Any input stream type containing file or binary data.filename
- The file name needed to be streamed back.contentType
- The mimetype of the file or binary data.public void readBlobStream(OutputStream fos)
fos
- Any output stream that you want your data to put into.public void writeGroupOut(Hashtable htab)
htab
- The hash table structure containing the metadata from the backend.public void writeGroupOut(Hashtable htab, String GroupOutName)
htab
- The hash table structure containing the metadata from the backend.GroupOutName
- The name of the group-outpublic void writeGroupOut(Vector nodeVec)
nodeVec
- The vector structure containing the metadata from the backend.public void writeGroupOut(Vector nodeVec, String GroupOutName)
nodeVec
- The vector structure containing the metadata from the backend.GroupOutName
- The name of the group-outpublic void writeGroupOut2(Vector nodeVec)
nodeVec
- The vector structure containing the metadata from the backend.public void writeGroupOut2(Vector nodeVec, String GroupOutName)
nodeVec
- The vector structure containing the metadata from the backend.public Vector readGroupIn()
public Vector readGroupIn(String GroupInName)
GroupInName
- The name of the group-in.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |