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,
String msg)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addResponseValue(Object respObj)
Add a response value
|
String |
getClassName()
Return the class name
|
List<Object> |
getResponseValues()
Get the response value list
|
int |
getStatus()
Return the status code
|
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,
String msg)
Javascript constructor
|
void |
jsSet_message(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,
String msg)
Set the status code and message
|
String |
toString()
Return the desktop response as a string
|
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, equivalentValues, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size
public DesktopResponse(int sts)
sts
- intpublic DesktopResponse(int sts, String msg)
sts
- intmsg
- Stringpublic void jsConstructor(int sts, String msg)
sts
- intmsg
- Stringpublic String getClassName()
getClassName
in interface org.mozilla.javascript.Scriptable
getClassName
in class org.mozilla.javascript.ScriptableObject
public final int getStatus()
public final boolean hasStatusMessage()
public final String getStatusMessage()
public final boolean hasResponseValues()
public final int numberOfResponseValues()
public final void addResponseValue(Object respObj)
respObj
- Objectpublic final void setStatus(int sts, String msg)
sts
- intmsg
- Stringpublic void jsSet_status(int sts)
sts
- intpublic void jsSet_message(String msg)
msg
- StringCopyright © 2005–2017 Alfresco Software. All rights reserved.