com.twilio.sdk.verbs
Class Verb

java.lang.Object
  extended by com.twilio.sdk.verbs.Verb
Direct Known Subclasses:
Client, Conference, Dial, Enqueue, Gather, Hangup, Leave, Number, Pause, Play, Queue, Record, Redirect, Reject, Say, Sms, TwiMLResponse

public class Verb
extends Object

The Class Verb.


Field Summary
static String V_CLIENT
          Constants
static String V_CONFERENCE
           
static String V_DIAL
           
static String V_ENQUEUE
           
static String V_GATHER
           
static String V_HANGUP
           
static String V_LEAVE
           
static String V_NUMBER
           
static String V_PAUSE
           
static String V_PLAY
           
static String V_QUEUE
           
static String V_RECORD
           
static String V_REDIRECT
           
static String V_REJECT
           
static String V_RESPONSE
           
static String V_SAY
           
static String V_SMS
          The Constant V_SMS.
 
Constructor Summary
Verb(String tag, String body)
          Instantiates a new verb.
 
Method Summary
 Verb append(Verb verb)
          Append.
 String asURL()
          As url.
 HashMap<String,String> getAttributes()
          Gets the attributes.
 String getBody()
          Gets the body.
 ArrayList<Verb> getChildren()
          Gets the children.
 String getTag()
          Gets the tag.
 void set(String key, String value)
          Sets the.
 String toXML()
          To xml.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

V_CLIENT

public static final String V_CLIENT
Constants

See Also:
Constant Field Values

V_CONFERENCE

public static final String V_CONFERENCE
See Also:
Constant Field Values

V_DIAL

public static final String V_DIAL
See Also:
Constant Field Values

V_ENQUEUE

public static final String V_ENQUEUE
See Also:
Constant Field Values

V_GATHER

public static final String V_GATHER
See Also:
Constant Field Values

V_HANGUP

public static final String V_HANGUP
See Also:
Constant Field Values

V_LEAVE

public static final String V_LEAVE
See Also:
Constant Field Values

V_NUMBER

public static final String V_NUMBER
See Also:
Constant Field Values

V_PAUSE

public static final String V_PAUSE
See Also:
Constant Field Values

V_PLAY

public static final String V_PLAY
See Also:
Constant Field Values

V_QUEUE

public static final String V_QUEUE
See Also:
Constant Field Values

V_RECORD

public static final String V_RECORD
See Also:
Constant Field Values

V_REDIRECT

public static final String V_REDIRECT
See Also:
Constant Field Values

V_RESPONSE

public static final String V_RESPONSE
See Also:
Constant Field Values

V_SAY

public static final String V_SAY
See Also:
Constant Field Values

V_SMS

public static final String V_SMS
The Constant V_SMS.

See Also:
Constant Field Values

V_REJECT

public static final String V_REJECT
See Also:
Constant Field Values
Constructor Detail

Verb

public Verb(String tag,
            String body)
Instantiates a new verb.

Parameters:
tag - the tag
body - the body
Method Detail

append

public Verb append(Verb verb)
            throws TwiMLException
Append.

Parameters:
verb - the verb
Returns:
the verb
Throws:
TwiMLException - the twiml exception

toXML

public String toXML()
To xml.

Returns:
the string

asURL

public String asURL()
As url.

Returns:
the string

set

public void set(String key,
                String value)
Sets the.

Parameters:
key - the key
value - the value

getBody

public String getBody()
Gets the body.

Returns:
the body

getTag

public String getTag()
Gets the tag.

Returns:
the tag

getChildren

public ArrayList<Verb> getChildren()
Gets the children.

Returns:
the children

getAttributes

public HashMap<String,String> getAttributes()
Gets the attributes.

Returns:
the attributes


Copyright © 2011 Twilio, Inc. All Rights Reserved.