|
||||||||||
| 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.Submit
public final class Submit
Submit values to a document server.
The <submit> element is used to submit information to
the origin Web server and then transition to the document sent back in the
response. Unlike <goto>, it lets you submit a list of
variables to the document server via an HTTP GET or POST request.
Copyright © 2005-2007 JVoiceXML group - http://jvoicexml.sourceforge.net/
Goto| Field Summary | |
|---|---|
static String |
ATTRIBUTE_ENCTYPE
The media encoding type of the submitted document (when the value of method is "post"). |
static String |
ATTRIBUTE_EXPR
Like next, except that the URI reference is dynamically determined by evaluating the given ECMAScript expression. |
static String |
ATTRIBUTE_FETCHAUDIO
The URI of the audio clip to play while the fetch is being done. |
static String |
ATTRIBUTE_FETCHHINT
Defines when the interpreter context should retrieve content from the server. prefetch indicates a file may be downloaded when the page is loaded, whereas safe indicates a file that should only be downloaded when actually needed. |
static String |
ATTRIBUTE_FETCHTIMEOUT
The interval to wait for the content to be returned before throwing an error.badfetch event. |
static String |
ATTRIBUTE_MAXAGE
Indicates that the document is willing to use content whose age is no greater than the specified time in seconds. |
static String |
ATTRIBUTE_MAXSTALE
Indicates that the document is willing to use content that has exceeded its expiration time. |
static String |
ATTRIBUTE_METHOD
The request method: get (the default) or post. |
static String |
ATTRIBUTE_NAMELIST
The list of variables to submit. |
protected static ArrayList<String> |
ATTRIBUTE_NAMES
Supported attribute names for this node. |
static String |
ATTRIBUTE_NEXT
The URI reference. |
static String |
TAG_NAME
Name of the tag. |
| Constructor Summary | |
|---|---|
Submit()
Construct a new submit 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. |
String |
getEnctype()
Retrieve the enctype attribute. |
String |
getExpr()
Retrieve the expr attribute. |
String |
getFetchaudio()
Retrieve the fetchaudio attribute. |
String |
getFetchhint()
Retrieve the fetchhint attribute. |
String |
getFetchtimeout()
Retrieve the fetchtimeout attribute. |
String |
getMaxage()
Retrieve the maxage attribute. |
String |
getMaxstale()
Retrieve the maxstale attribute. |
RequestMethod |
getMethod()
Retrieve the method attribute. |
String |
getMethodName()
Retrieve the method attribute. |
String |
getNamelist()
Retrieve the namelist attribute. |
TokenList |
getNameListObject()
Retrieve the namelist attribute as a list object. |
String |
getNext()
Retrieve the next attribute. |
URI |
getNextUri()
Retrieve the next attribute. |
String |
getTagName()
Get the name of the tag for the derived node. |
XmlNode |
newInstance(Node n,
XmlNodeFactory<? extends XmlNode> factory)
Create a new instance for the given node. |
void |
setEnctype(String enctype)
Set the enctype attribute. |
void |
setExpr(String expr)
Set the expr attribute. |
void |
setFetchaudio(String fetchaudio)
Set the fetchaudio attribute. |
void |
setFetchhint(String fetchhint)
Set the fetchhint attribute. |
void |
setFetchtimeout(String fetchtimeout)
Set the fetchtimeout attribute. |
void |
setMaxage(String maxage)
Set the maxage attribute. |
void |
setMaxstale(String maxstale)
Set the maxstale attribute. |
void |
setMethod(RequestMethod method)
Set the method attribute. |
void |
setMethodName(String method)
Set the method attribute. |
void |
setNamelist(String namelist)
Set the namelist attribute. |
void |
setNameList(TokenList list)
Set the namelist attribute. |
void |
setNext(String next)
Set the next attribute. |
void |
setNextUri(URI next)
Set the next 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_NEXT
public static final String ATTRIBUTE_EXPR
public static final String ATTRIBUTE_NAMELIST
public static final String ATTRIBUTE_METHOD
public static final String ATTRIBUTE_ENCTYPE
public static final String ATTRIBUTE_FETCHAUDIO
public static final String ATTRIBUTE_FETCHTIMEOUT
public static final String ATTRIBUTE_FETCHHINT
public static final String ATTRIBUTE_MAXAGE
public static final String ATTRIBUTE_MAXSTALE
protected static final ArrayList<String> ATTRIBUTE_NAMES
| Constructor Detail |
|---|
public Submit()
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 getNext()
ATTRIBUTE_NEXT
public URI getNextUri()
throws URISyntaxException
URISyntaxException - Value is not a valid URI.ATTRIBUTE_NEXTpublic void setNext(String next)
next - Value of the next attribute.ATTRIBUTE_NEXTpublic void setNextUri(URI next)
next - Value of the next attribute.ATTRIBUTE_NEXTpublic String getExpr()
ATTRIBUTE_EXPRpublic void setExpr(String expr)
expr - Value of the expr attribute.ATTRIBUTE_EXPRpublic String getNamelist()
ATTRIBUTE_NAMELIST,
getNameListObject()public void setNamelist(String namelist)
namelist - Value of the namelist attribute.ATTRIBUTE_NAMELIST,
setNameList(TokenList)public TokenList getNameListObject()
getNamelist()public void setNameList(TokenList list)
list - Value of the namelist attribute.ATTRIBUTE_NAMELIST,
setNamelist(String)public String getMethodName()
ATTRIBUTE_METHODpublic RequestMethod getMethod()
ATTRIBUTE_METHODpublic void setMethodName(String method)
method - Value of the method attribute.ATTRIBUTE_METHODpublic void setMethod(RequestMethod method)
method - Value of the method attribute.ATTRIBUTE_METHODpublic String getEnctype()
ATTRIBUTE_ENCTYPEpublic void setEnctype(String enctype)
enctype - Value of the enctype attribute.ATTRIBUTE_ENCTYPEpublic String getFetchaudio()
ATTRIBUTE_FETCHAUDIOpublic void setFetchaudio(String fetchaudio)
fetchaudio - Value of the fetchaudio attribute.ATTRIBUTE_FETCHAUDIOpublic String getFetchhint()
ATTRIBUTE_FETCHHINTpublic void setFetchhint(String fetchhint)
fetchhint - Value of the fetchhint attribute.ATTRIBUTE_FETCHHINTpublic String getFetchtimeout()
ATTRIBUTE_FETCHTIMEOUTpublic void setFetchtimeout(String fetchtimeout)
fetchtimeout - Value of the fetchtimeout attribute.ATTRIBUTE_FETCHTIMEOUTpublic String getMaxage()
ATTRIBUTE_MAXAGEpublic void setMaxage(String maxage)
maxage - Value of the maxage attribute.ATTRIBUTE_MAXAGEpublic String getMaxstale()
ATTRIBUTE_MAXSTALEpublic void setMaxstale(String maxstale)
maxstale - Value of the maxstale attribute.ATTRIBUTE_MAXSTALEprotected 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 | |||||||||