Package org.telegram.telegrambots.bots
Class DefaultBotOptions
- java.lang.Object
-
- org.telegram.telegrambots.bots.DefaultBotOptions
-
- All Implemented Interfaces:
BotOptions
public class DefaultBotOptions extends Object implements BotOptions
- Version:
- 1.0
- Author:
- Ruben Bermudez
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultBotOptions.ProxyType
-
Constructor Summary
Constructors Constructor Description DefaultBotOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getAllowedUpdates()BackOffgetBackOff()StringgetBaseUrl()intgetGetUpdatesLimit()intgetGetUpdatesTimeout()org.apache.http.protocol.HttpContextgetHttpContext()intgetMaxThreads()IntegergetMaxWebhookConnections()StringgetProxyHost()intgetProxyPort()DefaultBotOptions.ProxyTypegetProxyType()org.apache.http.client.config.RequestConfiggetRequestConfig()voidsetAllowedUpdates(List<String> allowedUpdates)voidsetBackOff(BackOff BackOff)voidsetBaseUrl(String baseUrl)voidsetGetUpdatesLimit(int getUpdatesLimit)voidsetGetUpdatesTimeout(int getUpdatesTimeout)voidsetHttpContext(org.apache.http.protocol.HttpContext httpContext)voidsetMaxThreads(int maxThreads)voidsetMaxWebhookConnections(Integer maxWebhookConnections)voidsetProxyHost(String proxyHost)voidsetProxyPort(int proxyPort)voidsetProxyType(DefaultBotOptions.ProxyType proxyType)voidsetRequestConfig(org.apache.http.client.config.RequestConfig requestConfig)
-
-
-
Method Detail
-
getBaseUrl
public String getBaseUrl()
- Specified by:
getBaseUrlin interfaceBotOptions
-
setBaseUrl
public void setBaseUrl(String baseUrl)
-
setMaxThreads
public void setMaxThreads(int maxThreads)
-
getMaxThreads
public int getMaxThreads()
-
getRequestConfig
public org.apache.http.client.config.RequestConfig getRequestConfig()
-
getMaxWebhookConnections
public Integer getMaxWebhookConnections()
-
getHttpContext
public org.apache.http.protocol.HttpContext getHttpContext()
-
setHttpContext
public void setHttpContext(org.apache.http.protocol.HttpContext httpContext)
-
setMaxWebhookConnections
public void setMaxWebhookConnections(Integer maxWebhookConnections)
-
setRequestConfig
public void setRequestConfig(org.apache.http.client.config.RequestConfig requestConfig)
- Parameters:
requestConfig- Request config to be used in all Http requests
-
getBackOff
public BackOff getBackOff()
-
setBackOff
public void setBackOff(BackOff BackOff)
- Parameters:
BackOff- backOff to be used when long polling fails
-
getProxyType
public DefaultBotOptions.ProxyType getProxyType()
-
setProxyType
public void setProxyType(DefaultBotOptions.ProxyType proxyType)
-
getProxyHost
public String getProxyHost()
-
setProxyHost
public void setProxyHost(String proxyHost)
-
getProxyPort
public int getProxyPort()
-
setProxyPort
public void setProxyPort(int proxyPort)
-
getGetUpdatesTimeout
public int getGetUpdatesTimeout()
-
setGetUpdatesTimeout
public void setGetUpdatesTimeout(int getUpdatesTimeout)
-
getGetUpdatesLimit
public int getGetUpdatesLimit()
-
setGetUpdatesLimit
public void setGetUpdatesLimit(int getUpdatesLimit)
-
-