public static class OpenTok.Builder
extends java.lang.Object
If you do not need to set these advanced settings, you can use the
OpenTok() constructor to build the OpenTok object.
| Constructor and Description |
|---|
Builder(int apiKey,
java.lang.String apiSecret)
Constructs a new OpenTok.Builder object.
|
| Modifier and Type | Method and Description |
|---|---|
OpenTok.Builder |
apiUrl(java.lang.String apiUrl)
Do not use.
|
OpenTok.Builder |
appendToUserAgent(java.lang.String appendUserAgent)
Append a custom string to the client's User-Agent.
|
OpenTok |
build()
Builds the OpenTok object with the settings provided to this
Builder object.
|
OpenTok.Builder |
proxy(java.net.Proxy proxy)
Sets a proxy server that the HTTP client will use when making calls to
the OpenTok REST API.
|
OpenTok.Builder |
proxy(java.net.Proxy proxy,
com.opentok.util.HttpClient.ProxyAuthScheme proxyAuthScheme,
java.lang.String principal,
java.lang.String password) |
OpenTok.Builder |
requestTimeout(int requestTimeout)
Specify the timeout for HTTP requests (in seconds).
|
public Builder(int apiKey,
java.lang.String apiSecret)
apiKey - The API key for your OpenTok project.apiSecret - The API secret for your OpenTok project. You can obtain
your API key and secret from your Video API account.
Do not publicly share your API secret.public OpenTok.Builder apiUrl(java.lang.String apiUrl)
public OpenTok.Builder proxy(java.net.Proxy proxy)
public OpenTok.Builder requestTimeout(int requestTimeout)
public OpenTok.Builder proxy(java.net.Proxy proxy, com.opentok.util.HttpClient.ProxyAuthScheme proxyAuthScheme, java.lang.String principal, java.lang.String password)
public OpenTok.Builder appendToUserAgent(java.lang.String appendUserAgent)
appendUserAgent - The string to append to the user agent.public OpenTok build()