public class DesktopResponse
extends org.mozilla.javascript.ScriptableObject
Holds the status code, optional status message and optional values returned by a desktop action.
| Constructor and Description |
|---|
DesktopResponse(int sts)
Class constructor
|
DesktopResponse(int sts,
java.lang.String msg)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addResponseValue(java.lang.Object respObj)
Add a response value
|
java.lang.String |
getClassName()
Return the class name
|
java.util.List |
getResponseValues()
Get the response value list
|
int |
getStatus()
Return the status code
|
java.lang.String |
getStatusMessage()
Return the status message
|
boolean |
hasResponseValues()
Determine if there are optional response values
|
boolean |
hasStatusMessage()
Determine if there is an optional status message
|
void |
jsConstructor(int sts,
java.lang.String msg)
Javascript constructor
|
void |
jsSet_message(java.lang.String msg)
Set the status message property
|
void |
jsSet_status(int sts)
Set the status property
|
int |
numberOfResponseValues()
Return the count of response values
|
void |
setStatus(int sts,
java.lang.String msg)
Set the status code and message
|
java.lang.String |
toString()
Return the desktop response as a string
|
associateValue, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, get, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototypepublic DesktopResponse(int sts)
sts - intpublic DesktopResponse(int sts,
java.lang.String msg)
sts - intmsg - Stringpublic void jsConstructor(int sts,
java.lang.String msg)
sts - intmsg - Stringpublic java.lang.String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class org.mozilla.javascript.ScriptableObjectpublic final int getStatus()
public final boolean hasStatusMessage()
public final java.lang.String getStatusMessage()
public final boolean hasResponseValues()
public final int numberOfResponseValues()
public final java.util.List getResponseValues()
public final void addResponseValue(java.lang.Object respObj)
respObj - Objectpublic final void setStatus(int sts,
java.lang.String msg)
sts - intmsg - Stringpublic void jsSet_status(int sts)
sts - intpublic void jsSet_message(java.lang.String msg)
msg - Stringpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.