Package com.bandwidth.voice.bxml.verbs
Class Redirect.RedirectBuilder
java.lang.Object
com.bandwidth.voice.bxml.verbs.Redirect.RedirectBuilder
- Enclosing class:
- Redirect
public static class Redirect.RedirectBuilder
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description RedirectBuilder()
-
Method Summary
Modifier and Type Method Description Redirect.RedirectBuilder
redirectMethod(Method method)
(optional) The HTTP method to use for the request to redirectUrl.Redirect.RedirectBuilder
redirectMethod(java.lang.String method)
(optional) The HTTP method to use for the request to redirectUrl.Redirect.RedirectBuilder
redirectUrl(java.lang.String uri)
(required) URL to request new BXML from.Redirect.RedirectBuilder
redirectUrl(java.net.URI uri)
(required) URL to request new BXML from.
-
Constructor Details
-
RedirectBuilder
public RedirectBuilder()
-
-
Method Details
-
redirectUrl
(required) URL to request new BXML from. A Redirect event will be sent to this endpoint. -
redirectUrl
(required) URL to request new BXML from. A Redirect event will be sent to this endpoint. Converts to URI using URI.create(url) -
redirectMethod
(optional) The HTTP method to use for the request to redirectUrl. GET or POST. Default Value is POST. -
redirectMethod
(optional) The HTTP method to use for the request to redirectUrl. GET or POST. Default Value is POST. Converts String to Method using Method.fromValue(method)
-