public class ObjectCall extends VoiceXmlOutputTurn
ObjectCall
is a VoiceXmlOutputTurn
used to exploit
platform-specific functionality.Modifier and Type | Class and Description |
---|---|
static class |
ObjectCall.Builder
Builder used to ease the creation of instances of
ObjectCall . |
static class |
ObjectCall.Parameter
ObjectCall parameter, can be created with a string value, a
JsonValue or an expression. |
static class |
ObjectCall.ParameterValueType
Types of parameter for <object>.
|
Modifier and Type | Field and Description |
---|---|
static String |
OBJECT_RESULT_VARIABLE_NAME |
Constructor and Description |
---|
ObjectCall(String name) |
addEventHandlerScript, addTopLevelProperties, createVoiceXmlDocument
addAdapter, asJson, getName, getVoiceXmlDocument, toString
public static final String OBJECT_RESULT_VARIABLE_NAME
public ObjectCall(String name)
name
- The name of this turn. Not empty.public final void setClassId(String classId)
classId
- The URI specifying the location of the object's
implementation.public final void setCodeBase(String codeBase)
codeBase
- The base path used to resolve relative URIs specified by
classid, data, and archive.public final void setCodeType(String codeType)
codeType
- The content type of data expected when downloading the
object specified by classid.public final void setData(String data)
data
- The URI specifying the location of the object's data.public final void setType(String type)
type
- The content type of the data specified by the data attributepublic final void setArchives(List<String> archives)
archives
- A list of URIs for archives containing resources relevant
to the object.public final void setFetchConfiguration(FetchConfiguration fetchConfiguration)
fetchConfiguration
- The object FetchConfiguration
.public final void setParameters(List<ObjectCall.Parameter> parameters)
parameters
- A list of parameters passed when invoking object. Not
null.public final void setParameters(ObjectCall.Parameter... parameters)
parameters
- A list of parameters passed when invoking object. Not
null.public final void setPostObjectScript(String postObjectScript)
postObjectScript
- The ECMAScript script to execute after object
invocation.public final String getClassId()
public final String getCodeBase()
public final String getCodeType()
public final List<String> getArchives()
public final FetchConfiguration getFetchConfiguration()
public final List<ObjectCall.Parameter> getParameters()
public final String getPostObjectScript()
protected final String getOuputTurnType()
getOuputTurnType
in class VoiceXmlOutputTurn
protected void addTurnProperties(javax.json.JsonObjectBuilder builder)
addTurnProperties
in class VoiceXmlDocumentTurn
protected void fillVoiceXmlDocument(Document document, Element formElement, VoiceXmlDialogueContext dialogueContext) throws VoiceXmlDocumentRenderingException
fillVoiceXmlDocument
in class VoiceXmlOutputTurn
VoiceXmlDocumentRenderingException
public int hashCode()
hashCode
in class VoiceXmlDocumentTurn
public boolean equals(Object obj)
equals
in class VoiceXmlDocumentTurn
Copyright © 2019 Nu Echo Inc..