public class DefaultBotOptions extends Object implements BotOptions
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultBotOptions.ProxyType |
| Constructor and Description |
|---|
DefaultBotOptions() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAllowedUpdates() |
String |
getBaseUrl() |
ExponentialBackOff |
getExponentialBackOff() |
org.apache.http.protocol.HttpContext |
getHttpContext() |
int |
getMaxThreads() |
Integer |
getMaxWebhookConnections() |
String |
getProxyHost() |
int |
getProxyPort() |
DefaultBotOptions.ProxyType |
getProxyType() |
org.apache.http.client.config.RequestConfig |
getRequestConfig() |
void |
setAllowedUpdates(List<String> allowedUpdates) |
void |
setBaseUrl(String baseUrl) |
void |
setExponentialBackOff(ExponentialBackOff exponentialBackOff) |
void |
setHttpContext(org.apache.http.protocol.HttpContext httpContext) |
void |
setMaxThreads(int maxThreads) |
void |
setMaxWebhookConnections(Integer maxWebhookConnections) |
void |
setProxyHost(String proxyHost) |
void |
setProxyPort(int proxyPort) |
void |
setProxyType(DefaultBotOptions.ProxyType proxyType) |
void |
setRequestConfig(org.apache.http.client.config.RequestConfig requestConfig) |
public String getBaseUrl()
getBaseUrl in interface BotOptionspublic void setBaseUrl(String baseUrl)
public void setMaxThreads(int maxThreads)
public int getMaxThreads()
public org.apache.http.client.config.RequestConfig getRequestConfig()
public Integer getMaxWebhookConnections()
public org.apache.http.protocol.HttpContext getHttpContext()
public void setHttpContext(org.apache.http.protocol.HttpContext httpContext)
public void setMaxWebhookConnections(Integer maxWebhookConnections)
public void setRequestConfig(org.apache.http.client.config.RequestConfig requestConfig)
requestConfig - Request config to be used in all Http requestspublic ExponentialBackOff getExponentialBackOff()
public void setExponentialBackOff(ExponentialBackOff exponentialBackOff)
exponentialBackOff - ExponentialBackOff to be used when long polling failspublic DefaultBotOptions.ProxyType getProxyType()
public void setProxyType(DefaultBotOptions.ProxyType proxyType)
public String getProxyHost()
public void setProxyHost(String proxyHost)
public int getProxyPort()
public void setProxyPort(int proxyPort)
Copyright © 2018. All rights reserved.