|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.xml.AbstractXmlNode
org.jvoicexml.xml.vxml.Transfer
public final class Transfer
Transfer the caller to another destination.
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.
Copyright © 2005-2007 JVoiceXML group - http://jvoicexml.sourceforge.net/
| Field Summary | |
|---|---|
static String |
ATTRIBUTE_AAI
Application-to-application information. |
static String |
ATTRIBUTE_AAIEXPR
An ECMAScript expression yielding the AAI data. |
static String |
ATTRIBUTE_BRIDGE
Determines whether the platform remains in the connection with the caller and callee. |
static String |
ATTRIBUTE_COND
An expression that must evaluate to true in order for the form item to be visited. |
static String |
ATTRIBUTE_CONNECTTIMEOUT
The time to wait while trying to connect the call before returning the noanswer condition. |
static String |
ATTRIBUTE_DEST
The URI of the destination (telephone, IP telephony address). |
static String |
ATTRIBUTE_DESTEXPR
An ECMAScript expression yielding the URI of the destination. |
static String |
ATTRIBUTE_EXPR
The initial value of the form item variable; default is ECMAScript undefined. |
static String |
ATTRIBUTE_MAXTIME
The time that the call is allowed to last, or 0s if no limit is imposed. |
static String |
ATTRIBUTE_NAME
Stores the outcome of a bridge transfer attempt. |
protected static ArrayList<String> |
ATTRIBUTE_NAMES
Supported attribute names for this node. |
static String |
ATTRIBUTE_TRANSFERAUDIO
The URI of audio source to play while the transfer attempt is in progress (before far-end answer). |
static String |
ATTRIBUTE_TYPE
The type of transfer. |
static String |
TAG_NAME
Name of the tag. |
| Constructor Summary | |
|---|---|
Transfer()
Construct a new transfer object without a node. |
|
| Method Summary | |
|---|---|
Text |
addText(String text)
Create a new text within this node. |
protected boolean |
canContainChild(String tagName)
Can the specified sub-tag be contained within this node? |
String |
getAai()
Retrieve the aai attribute. |
String |
getAaiexpr()
Retrieve the aaiexpr attribute. |
Collection<String> |
getAttributeNames()
Returns a collection of permitted attribute names for the node. |
String |
getBridge()
Retrieve the bridge attribute. |
String |
getCond()
Retrieve the cond attribute. |
String |
getConnecttimeout()
Retrieve the connecttimeout attribute. |
String |
getDest()
Retrieve the dest attribute. |
String |
getDestexpr()
Retrieve the destexpr attribute. |
String |
getExpr()
Retrieve the expr attribute. |
String |
getMaxtime()
Retrieve the maxtime attribute. |
String |
getName()
Retrieve the name attribute. |
String |
getTagName()
Get the name of the tag for the derived node. |
String |
getTransferaudio()
Retrieve the transferaudio attribute. |
String |
getType()
Retrieve the type attribute. |
boolean |
isBridge()
Checks if the requested transfer is a bridge transfer. |
XmlNode |
newInstance(Node n,
XmlNodeFactory<? extends XmlNode> factory)
Create a new instance for the given node. |
void |
setAai(String aai)
Set the aai attribute. |
void |
setAaiexpr(String aaiexpr)
Set the aaiexpr attribute. |
void |
setBridge(boolean bridge)
Sets the bridge attribute. |
void |
setBridge(String bridge)
Sets the bridge attribute. |
void |
setCond(String cond)
Set the cond attribute. |
void |
setConnecttimeout(String connecttimeout)
Set the connecttimeout attribute. |
void |
setDest(String dest)
Set the dest attribute. |
void |
setDestexpr(String destexpr)
Set the destexpr attribute. |
void |
setExpr(String expr)
Set the expr attribute. |
void |
setMaxtime(String maxtime)
Set the maxtime attribute. |
void |
setName(String name)
Set the name attribute. |
void |
setTransferaudio(String transferaudio)
Set the transferaudio attribute. |
void |
setType(String type)
Set the type attribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jvoicexml.xml.XmlNode |
|---|
addChild, getAttribute, getChildNodes, getChildren, getNode, setAttribute |
| Methods inherited from interface org.w3c.dom.Node |
|---|
appendChild, 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, setUserData |
| Field Detail |
|---|
public static final String TAG_NAME
public static final String ATTRIBUTE_NAME
public static final String ATTRIBUTE_EXPR
public static final String ATTRIBUTE_COND
public static final String ATTRIBUTE_DEST
public static final String ATTRIBUTE_DESTEXPR
public static final String ATTRIBUTE_TYPE
public static final 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 String ATTRIBUTE_CONNECTTIMEOUT
public static final String ATTRIBUTE_MAXTIME
public static final String ATTRIBUTE_TRANSFERAUDIO
public static final String ATTRIBUTE_AAI
public static final String ATTRIBUTE_AAIEXPR
protected static final ArrayList<String> ATTRIBUTE_NAMES
| Constructor Detail |
|---|
public Transfer()
This is necessary for the node factory.
VoiceXmlNodeFactory| Method Detail |
|---|
public String getTagName()
public XmlNode newInstance(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 String getName()
ATTRIBUTE_NAMEpublic void setName(String name)
name - Value of the name attribute.ATTRIBUTE_NAMEpublic String getExpr()
ATTRIBUTE_EXPRpublic void setExpr(String expr)
expr - Value of the expr attribute.ATTRIBUTE_EXPRpublic String getCond()
ATTRIBUTE_CONDpublic void setCond(String cond)
cond - Value of the cond attribute.ATTRIBUTE_CONDpublic String getDest()
ATTRIBUTE_DESTpublic void setDest(String dest)
dest - Value of the dest attribute.ATTRIBUTE_DESTpublic String getDestexpr()
ATTRIBUTE_DESTEXPRpublic void setDestexpr(String destexpr)
destexpr - Value of the destexpr attribute.ATTRIBUTE_DESTEXPRpublic boolean isBridge()
true if the requested transfer is a bridge transfer.public String getBridge()
ATTRIBUTE_BRIDGEpublic void setBridge(String bridge)
bridge - Value of the bridge attribute.ATTRIBUTE_BRIDGEpublic void setBridge(boolean bridge)
bridge - Value of the bridge attribute.ATTRIBUTE_BRIDGEpublic String getConnecttimeout()
ATTRIBUTE_CONNECTTIMEOUTpublic void setConnecttimeout(String connecttimeout)
connecttimeout - Value of the connecttimeout attribute.ATTRIBUTE_CONNECTTIMEOUTpublic String getMaxtime()
ATTRIBUTE_MAXTIMEpublic void setMaxtime(String maxtime)
maxtime - Value of the maxtime attribute.ATTRIBUTE_MAXTIMEpublic String getTransferaudio()
ATTRIBUTE_TRANSFERAUDIOpublic void setTransferaudio(String transferaudio)
transferaudio - Value of the transferaudio attribute.ATTRIBUTE_TRANSFERAUDIOpublic String getAai()
ATTRIBUTE_AAIpublic void setAai(String aai)
aai - Value of the aai attribute.ATTRIBUTE_AAIpublic String getAaiexpr()
ATTRIBUTE_AAIEXPRpublic void setAaiexpr(String aaiexpr)
aaiexpr - Value of the aaiexpr attribute.ATTRIBUTE_AAIEXPRpublic String getType()
ATTRIBUTE_TYPEpublic void setType(String type)
type - Value of the type attribute.ATTRIBUTE_TYPEpublic Text addText(String text)
text - The text to be added.
protected boolean canContainChild(String tagName)
canContainChild in class AbstractXmlNodetagName - Name of child.
public Collection<String> getAttributeNames()
getAttributeNames in interface XmlNodegetAttributeNames in class AbstractXmlNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||