public final class Transfer extends AbstractXmlNode
The <transfer> element directs the interpreter to connect
the caller to another entity (e.g. telephone line or another voice
application). During the transfer operation, the current interpreter session
is suspended.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTRIBUTE_AAI
Application-to-application information.
|
static java.lang.String |
ATTRIBUTE_AAIEXPR
An ECMAScript expression yielding the AAI data.
|
static java.lang.String |
ATTRIBUTE_BRIDGE
Determines whether the platform remains in the connection with the caller
and callee.
|
static java.lang.String |
ATTRIBUTE_COND
An expression that must evaluate to true in order for the form item to
be visited.
|
static java.lang.String |
ATTRIBUTE_CONNECTTIMEOUT
The time to wait while trying to connect the call before returning the
noanswer condition.
|
static java.lang.String |
ATTRIBUTE_DEST
The URI of the destination (telephone, IP telephony address).
|
static java.lang.String |
ATTRIBUTE_DESTEXPR
An ECMAScript expression yielding the URI of the destination.
|
static java.lang.String |
ATTRIBUTE_EXPR
The initial value of the form item variable; default is ECMAScript
undefined.
|
static java.lang.String |
ATTRIBUTE_MAXTIME
The time that the call is allowed to last, or 0s if no limit is imposed.
|
static java.lang.String |
ATTRIBUTE_NAME
Stores the outcome of a bridge transfer attempt.
|
protected static java.util.ArrayList<java.lang.String> |
ATTRIBUTE_NAMES
Supported attribute names for this node.
|
static java.lang.String |
ATTRIBUTE_TRANSFERAUDIO
The URI of audio source to play while the transfer attempt is in progress
(before far-end answer).
|
static java.lang.String |
ATTRIBUTE_TYPE
The type of transfer.
|
static java.lang.String |
TAG_NAME
Name of the tag.
|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description |
|---|
Transfer()
Construct a new transfer object without a node.
|
| Modifier and Type | Method and Description |
|---|---|
Text |
addText(java.lang.String text)
Create a new text within this node.
|
protected boolean |
canContainChild(java.lang.String tagName)
Can the specified sub-tag be contained within this node?
|
java.lang.String |
getAai()
Retrieve the aai attribute.
|
java.lang.String |
getAaiexpr()
Retrieve the aaiexpr attribute.
|
java.util.Collection<java.lang.String> |
getAttributeNames()
Returns a collection of permitted attribute names for the node.
|
java.lang.String |
getBridge()
Retrieve the bridge attribute.
|
java.lang.String |
getCond()
Retrieve the cond attribute.
|
java.lang.String |
getConnecttimeout()
Retrieve the connecttimeout attribute.
|
java.lang.String |
getDest()
Retrieve the dest attribute.
|
java.lang.String |
getDestexpr()
Retrieve the destexpr attribute.
|
java.lang.String |
getExpr()
Retrieve the expr attribute.
|
java.lang.String |
getMaxtime()
Retrieve the maxtime attribute.
|
java.lang.String |
getName()
Retrieve the name attribute.
|
java.lang.String |
getTagName()
Get the name of the tag for the derived node.
|
java.lang.String |
getTransferaudio()
Retrieve the transferaudio attribute.
|
java.lang.String |
getType()
Retrieve the type attribute.
|
boolean |
isBridge()
Checks if the requested transfer is a bridge transfer.
|
XmlNode |
newInstance(org.w3c.dom.Node n,
XmlNodeFactory<? extends XmlNode> factory)
Create a new instance for the given node.
|
void |
setAai(java.lang.String aai)
Set the aai attribute.
|
void |
setAaiexpr(java.lang.String aaiexpr)
Set the aaiexpr attribute.
|
void |
setBridge(boolean bridge)
Sets the bridge attribute.
|
void |
setBridge(java.lang.String bridge)
Sets the bridge attribute.
|
void |
setCond(java.lang.String cond)
Set the cond attribute.
|
void |
setConnecttimeout(java.lang.String connecttimeout)
Set the connecttimeout attribute.
|
void |
setDest(java.lang.String dest)
Set the dest attribute.
|
void |
setDestexpr(java.lang.String destexpr)
Set the destexpr attribute.
|
void |
setExpr(java.lang.String expr)
Set the expr attribute.
|
void |
setMaxtime(java.lang.String maxtime)
Set the maxtime attribute.
|
void |
setName(java.lang.String name)
Set the name attribute.
|
void |
setTransferaudio(java.lang.String transferaudio)
Set the transferaudio attribute.
|
void |
setType(java.lang.String type)
Set the type attribute.
|
addChild, addChild, appendChild, appendChild, appendDeepClone, cloneNode, compareDocumentPosition, equals, getAttribute, getAttributes, getBaseURI, getChildNodes, getChildNodes, getChildren, getDefinedAttributeNames, getFeature, getFirstChild, getFirstLevelTextContent, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeFactory, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getOwnerXmlDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttribute, hasAttributes, hasChildNodes, hashCode, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setAttribute, setNodeValue, setPrefix, setTextContent, setUserData, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddChild, getAttribute, getChildNodes, getChildren, getNode, setAttributeappendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDatapublic static final java.lang.String TAG_NAME
public static final java.lang.String ATTRIBUTE_NAME
public static final java.lang.String ATTRIBUTE_EXPR
public static final java.lang.String ATTRIBUTE_COND
public static final java.lang.String ATTRIBUTE_DEST
public static final java.lang.String ATTRIBUTE_DESTEXPR
public static final java.lang.String ATTRIBUTE_TYPE
public static final java.lang.String ATTRIBUTE_BRIDGE
Bridge transfer. The platform adds the callee to the connection. Document interpretation suspends until the transferred call terminates. The platform remains in the connection for the duration of the transferred call; listening during transfer is controlled by any included <grammar>s.
If the caller disconnects by going onhook or if the network disconnects the caller, the platform throws a connection.disconnect.hangup event.
If the connection is released for any other reason, that outcome is reported in the name attribute (see the following table).
Blind transfer (default). The platform redirects the caller to the callee without remaining in the connection, and does not monitor the outcome.
The platform throws a connection.disconnect.transfer immediately, regardless of whether the transfer was successful or not.
public static final java.lang.String ATTRIBUTE_CONNECTTIMEOUT
public static final java.lang.String ATTRIBUTE_MAXTIME
public static final java.lang.String ATTRIBUTE_TRANSFERAUDIO
public static final java.lang.String ATTRIBUTE_AAI
public static final java.lang.String ATTRIBUTE_AAIEXPR
protected static final java.util.ArrayList<java.lang.String> ATTRIBUTE_NAMES
public Transfer()
This is necessary for the node factory.
VoiceXmlNodeFactorypublic java.lang.String getTagName()
public XmlNode newInstance(org.w3c.dom.Node n, XmlNodeFactory<? extends XmlNode> factory)
Each XmlNode can serve as a prototype in a
XmlNodeFactory to produce a collection of
child nodes. Factories can then use the prototype pattern to
produce new nodes.
n - The node to encapsulate.factory - the factroy that calls this method.XmlNodeFactorypublic java.lang.String getName()
ATTRIBUTE_NAMEpublic void setName(java.lang.String name)
name - Value of the name attribute.ATTRIBUTE_NAMEpublic java.lang.String getExpr()
ATTRIBUTE_EXPRpublic void setExpr(java.lang.String expr)
expr - Value of the expr attribute.ATTRIBUTE_EXPRpublic java.lang.String getCond()
ATTRIBUTE_CONDpublic void setCond(java.lang.String cond)
cond - Value of the cond attribute.ATTRIBUTE_CONDpublic java.lang.String getDest()
ATTRIBUTE_DESTpublic void setDest(java.lang.String dest)
dest - Value of the dest attribute.ATTRIBUTE_DESTpublic java.lang.String getDestexpr()
ATTRIBUTE_DESTEXPRpublic void setDestexpr(java.lang.String destexpr)
destexpr - Value of the destexpr attribute.ATTRIBUTE_DESTEXPRpublic boolean isBridge()
true if the requested transfer is a bridge transfer.public java.lang.String getBridge()
ATTRIBUTE_BRIDGEpublic void setBridge(java.lang.String bridge)
bridge - Value of the bridge attribute.ATTRIBUTE_BRIDGEpublic void setBridge(boolean bridge)
bridge - Value of the bridge attribute.ATTRIBUTE_BRIDGEpublic java.lang.String getConnecttimeout()
ATTRIBUTE_CONNECTTIMEOUTpublic void setConnecttimeout(java.lang.String connecttimeout)
connecttimeout - Value of the connecttimeout attribute.ATTRIBUTE_CONNECTTIMEOUTpublic java.lang.String getMaxtime()
ATTRIBUTE_MAXTIMEpublic void setMaxtime(java.lang.String maxtime)
maxtime - Value of the maxtime attribute.ATTRIBUTE_MAXTIMEpublic java.lang.String getTransferaudio()
ATTRIBUTE_TRANSFERAUDIOpublic void setTransferaudio(java.lang.String transferaudio)
transferaudio - Value of the transferaudio attribute.ATTRIBUTE_TRANSFERAUDIOpublic java.lang.String getAai()
ATTRIBUTE_AAIpublic void setAai(java.lang.String aai)
aai - Value of the aai attribute.ATTRIBUTE_AAIpublic java.lang.String getAaiexpr()
ATTRIBUTE_AAIEXPRpublic void setAaiexpr(java.lang.String aaiexpr)
aaiexpr - Value of the aaiexpr attribute.ATTRIBUTE_AAIEXPRpublic java.lang.String getType()
ATTRIBUTE_TYPEpublic void setType(java.lang.String type)
type - Value of the type attribute.ATTRIBUTE_TYPEpublic Text addText(java.lang.String text)
text - The text to be added.protected boolean canContainChild(java.lang.String tagName)
canContainChild in class AbstractXmlNodetagName - Name of child.public java.util.Collection<java.lang.String> getAttributeNames()
getAttributeNames in interface XmlNodegetAttributeNames in class AbstractXmlNode