Package com.twilio.twiml
Class TwiML
- java.lang.Object
-
- com.twilio.twiml.TwiML
-
- Direct Known Subclasses:
Autopilot,Body,Client,Conference,Config,Connect,Conversation,Dial,Echo,Enqueue,FaxResponse,Gather,GenericNode,Hangup,Identity,Leave,Media,Message,MessagingResponse,Number,Parameter,Pause,Pay,Play,Prompt,Queue,Receive,Record,Redirect,Redirect,Refer,ReferSip,Reject,Room,Room,Say,Sim,Sip,Siprec,Sms,SsmlBreak,SsmlEmphasis,SsmlLang,SsmlP,SsmlPhoneme,SsmlProsody,SsmlS,SsmlSayAs,SsmlSub,SsmlW,Start,Stop,Stream,Task,Text,VirtualAgent,VoiceResponse
public abstract class TwiML extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTwiML.Builder<T extends TwiML.Builder<T>>Create a newTwiMLnode
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<TwiML>getChildren()Get children elements of this TwiML element.Map<String,String>getOptions()Get additional options set on this TwiML's generated XML.StringgetTagName()Get tag name of this TwiML Element.inthashCode()StringtoUrl()Convert TwiML object to URL.StringtoXml()Convert TwiML object to XML.
-
-
-
Method Detail
-
getTagName
public String getTagName()
Get tag name of this TwiML Element.
-
getOptions
public Map<String,String> getOptions()
Get additional options set on this TwiML's generated XML.
-
toXml
public String toXml() throws TwiMLException
Convert TwiML object to XML.- Returns:
- XML string of TwiML object
- Throws:
TwiMLException- if cannot generate XML
-
toUrl
public String toUrl() throws TwiMLException
Convert TwiML object to URL.- Returns:
- URL string of TwiML object
- Throws:
TwiMLException- if cannot generate URL
-
-