org.jvoicexml.xml.ccxml
Class Createccxml

java.lang.Object
  extended by org.jvoicexml.xml.AbstractXmlNode
      extended by org.jvoicexml.xml.ccxml.Createccxml
All Implemented Interfaces:
CcxmlNode, XmlNode, XmlWritable, Node

public final class Createccxml
extends AbstractXmlNode

<createccxml> is used to create another CCXML session, which begins execution with the document identified by this element. The term "session" is not meant to imply a particular form of implementation. A CCXML session exists for each concurrently executing CCXML document. A session provides independent execution and a separate variable space for the CCXML documents it executes. A session is associated with one or more event sources and will receive events only from those endpoints. The execution of a CCXML document MAY add or subtract event sources from a session. The new CCXML session has no relation to its creator once spawned, and has a wholly separate lifetime and address space. Execution returns from the <createccxml> element immediately, and the CCXML interpreter can continue on while the new CCXML session is established and loads its initial document. If the new session is successfully established or a failure occurs an event is generated and is delivered to the session that executed the <createccxml> element.

Version:
$Revision: 154 $

Copyright © 2005 JVoiceXML group - http://jvoicexml.sourceforge.net/

Author:
Steve Doyle

Field Summary
static String ATTRIBUTE_ENCTYPE
          An ECMAScript expression which returns a character string that indicates the media encoding type of the submitted document (when the value of the method is "post").
static String ATTRIBUTE_MAXAGE
          The character string returned is interpreted as a time interval.
static String ATTRIBUTE_MAXSTALE
          The character string returned is interpreted as a time interval.
static String ATTRIBUTE_METHOD
          The character string returned is interpreted as a time interval.
static String ATTRIBUTE_NAMELIST
          A list of zero or more whitespace separated CCXML variable names.
protected static ArrayList<String> ATTRIBUTE_NAMES
          Supported attribute names for this node.
static String ATTRIBUTE_NEXT
          An ECMAScript expression which returns the URI of the resource to be fetched.
static String ATTRIBUTE_SESSIONID
          An ECMAScript left hand side expression evaluating to a previously defined variable.
static String ATTRIBUTE_TIMEOUT
          An ECMAScript left hand side expression evaluating to a previously defined variable.
static String TAG_NAME
          Name of the tag.
 
Fields inherited from interface org.w3c.dom.Node
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 Summary
Createccxml()
          Construct a new createccxml object without a node.
 
Method Summary
protected  boolean canContainChild(String tagName)
          Can the specified sub-tag be contained within this node?
 Collection<String> getAttributeNames()
          Returns a collection of permitted attribute names for the node.
 NodeList getChildNodes()
          A NodeList that contains all children of this node.
 String getEnctype()
          Retrieve the enctype attribute.
 String getMaxage()
          Retrieve the maxage attribute.
 String getMaxstale()
          Retrieve the maxstale attribute.
 String getMethod()
          Retrieve the method attribute.
 String getNamelist()
          Retrieve the namelist attribute.
 String getNext()
          Retrieve the next attribute.
 String getSessionid()
          Retrieve the sessionid attribute.
 String getTagName()
          Get the name of the tag for the derived node.
 String getTimeout()
          Retrieve the timeout attribute.
 XmlNode newInstance(Node n)
          Create a new instance for the given node.
 void setEnctype(String enctype)
          Set the enctype attribute.
 void setMaxage(String maxage)
          Set the maxage attribute.
 void setMaxstale(String maxstale)
          Set the maxstale attribute.
 void setMethod(String method)
          Set the method attribute.
 void setNamelist(String namelist)
          Set the namelist attribute.
 void setNext(String next)
          Set the next attribute.
 void setSessionid(String sessionid)
          Set the sessionid attribute.
 void setTimeout(String timeout)
          Set the timeout attribute.
 
Methods inherited from class org.jvoicexml.xml.AbstractXmlNode
addChild, addChild, appendChild, cloneNode, compareDocumentPosition, getAttribute, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeFactory, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setAttribute, setNodeValue, setPrefix, setTextContent, setUserData, toString, writeChildrenXml, writeXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jvoicexml.xml.XmlNode
addChild, getAttribute, getChildNodes, getNode, setAttribute
 
Methods inherited from interface org.jvoicexml.xml.XmlWritable
writeChildrenXml, writeXml
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, 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

TAG_NAME

public static final String TAG_NAME
Name of the tag.

See Also:
Constant Field Values

ATTRIBUTE_ENCTYPE

public static final String ATTRIBUTE_ENCTYPE
An ECMAScript expression which returns a character string that indicates the media encoding type of the submitted document (when the value of the method is "post").

See Also:
Constant Field Values

ATTRIBUTE_MAXAGE

public static final String ATTRIBUTE_MAXAGE
The character string returned is interpreted as a time interval. This indicates that the document is willing to use content whose age is no greater than the specified time in seconds (cf. 'max-age' in HTTP 1.1 [RFC2616]). The document is not willing to use stale content, unless maxstale is also provided.

See Also:
Constant Field Values

ATTRIBUTE_MAXSTALE

public static final String ATTRIBUTE_MAXSTALE
The character string returned is interpreted as a time interval. This indicates that the document is willing to use content that has exceeded its expiration time (cf. 'max-age' in HTTP 1.1 [RFC2616]). If maxstale is assigned a value, then the document is willing to accept content that has exceeded its expiration time by no more than the specified number of seconds.

See Also:
Constant Field Values

ATTRIBUTE_METHOD

public static final String ATTRIBUTE_METHOD
The character string returned is interpreted as a time interval. This indicates that the document is willing to use content that has exceeded its expiration time (cf. 'max-age' in HTTP 1.1 [RFC2616]). If maxstale is assigned a value, then the document is willing to accept content that has exceeded its expiration time by no more than the specified number of seconds.

See Also:
Constant Field Values

ATTRIBUTE_NAMELIST

public static final String ATTRIBUTE_NAMELIST
A list of zero or more whitespace separated CCXML variable names. These variables will be submitted to the server, with the same qualification as used in the namelist. When an ECMAscript variable is submitted to the server, its value is first converted into a string before being submitted. If the variable is an ECMAScript Object, the mechanism by which it is submitted is not currently defined. Instead of submitting ECMAScript Objects directly, the application developer may explicitly submit the properties of an Object. e.g. "date.month date.year".

See Also:
Constant Field Values

ATTRIBUTE_NEXT

public static final String ATTRIBUTE_NEXT
An ECMAScript expression which returns the URI of the resource to be fetched.

See Also:
Constant Field Values

ATTRIBUTE_SESSIONID

public static final String ATTRIBUTE_SESSIONID
An ECMAScript left hand side expression evaluating to a previously defined variable. The value of the attribute will receive an internally generated unique string identifier which identifies the newly created session.

See Also:
Constant Field Values

ATTRIBUTE_TIMEOUT

public static final String ATTRIBUTE_TIMEOUT
An ECMAScript left hand side expression evaluating to a previously defined variable. The value of the attribute will receive an internally generated unique string identifier which identifies the newly created session.

See Also:
Constant Field Values

ATTRIBUTE_NAMES

protected static final ArrayList<String> ATTRIBUTE_NAMES
Supported attribute names for this node.

Constructor Detail

Createccxml

public Createccxml()
Construct a new createccxml object without a node.

This is necessary for the node factory.

See Also:
VoiceXmlNodeFactory
Method Detail

getTagName

public String getTagName()
Get the name of the tag for the derived node.

Returns:
name of the tag.

newInstance

public XmlNode newInstance(Node n)
Create a new instance for the given node.

Parameters:
n - The node to encapsulate.
Returns:
The new instance.
See Also:
XmlNodeFactory

getEnctype

public String getEnctype()
Retrieve the enctype attribute.

Returns:
Value of the enctype attribute.
See Also:
ATTRIBUTE_ENCTYPE

setEnctype

public void setEnctype(String enctype)
Set the enctype attribute.

Parameters:
enctype - Value of the enctype attribute.
See Also:
ATTRIBUTE_ENCTYPE

getMaxage

public String getMaxage()
Retrieve the maxage attribute.

Returns:
Value of the maxage attribute.
See Also:
ATTRIBUTE_MAXAGE

setMaxage

public void setMaxage(String maxage)
Set the maxage attribute.

Parameters:
maxage - Value of the maxage attribute.
See Also:
ATTRIBUTE_MAXAGE

getMaxstale

public String getMaxstale()
Retrieve the maxstale attribute.

Returns:
Value of the maxstale attribute.
See Also:
ATTRIBUTE_MAXSTALE

setMaxstale

public void setMaxstale(String maxstale)
Set the maxstale attribute.

Parameters:
maxstale - Value of the maxstale attribute.
See Also:
ATTRIBUTE_MAXSTALE

getMethod

public String getMethod()
Retrieve the method attribute.

Returns:
Value of the method attribute.
See Also:
ATTRIBUTE_METHOD

setMethod

public void setMethod(String method)
Set the method attribute.

Parameters:
method - Value of the method attribute.
See Also:
ATTRIBUTE_METHOD

getNamelist

public String getNamelist()
Retrieve the namelist attribute.

Returns:
Value of the namelist attribute.
See Also:
ATTRIBUTE_NAMELIST

setNamelist

public void setNamelist(String namelist)
Set the namelist attribute.

Parameters:
namelist - Value of the namelist attribute.
See Also:
ATTRIBUTE_NAMELIST

getNext

public String getNext()
Retrieve the next attribute.

Returns:
Value of the next attribute.
See Also:
ATTRIBUTE_NEXT

setNext

public void setNext(String next)
Set the next attribute.

Parameters:
next - Value of the next attribute.
See Also:
ATTRIBUTE_NEXT

getSessionid

public String getSessionid()
Retrieve the sessionid attribute.

Returns:
Value of the sessionid attribute.
See Also:
ATTRIBUTE_SESSIONID

setSessionid

public void setSessionid(String sessionid)
Set the sessionid attribute.

Parameters:
sessionid - Value of the sessionid attribute.
See Also:
ATTRIBUTE_SESSIONID

getTimeout

public String getTimeout()
Retrieve the timeout attribute.

Returns:
Value of the timeout attribute.
See Also:
ATTRIBUTE_TIMEOUT

setTimeout

public void setTimeout(String timeout)
Set the timeout attribute.

Parameters:
timeout - Value of the timeout attribute.
See Also:
ATTRIBUTE_TIMEOUT

canContainChild

protected boolean canContainChild(String tagName)
Can the specified sub-tag be contained within this node?

Specified by:
canContainChild in class AbstractXmlNode
Parameters:
tagName - Name of child.
Returns:
True if the sub-tag is allowed on this node.

getAttributeNames

public Collection<String> getAttributeNames()
Returns a collection of permitted attribute names for the node.

Specified by:
getAttributeNames in interface XmlNode
Overrides:
getAttributeNames in class AbstractXmlNode
Returns:
A collection of attribute names that are allowed for the node

getChildNodes

public final NodeList getChildNodes()
A NodeList that contains all children of this node.

Specified by:
getChildNodes in interface Node
Returns:
NodeList


Copyright © 2005-2007 JVoiceXML group.