Package com.slack.api
Class SlackConfig
- java.lang.Object
-
- com.slack.api.SlackConfig
-
public class SlackConfig extends Object
The basic configuration of this SDK. Some settings can be propagated to sub modules such as Bolt.
-
-
Field Summary
Fields Modifier and Type Field Description static SlackConfigDEFAULTThe default instance is immutable.
-
Constructor Summary
Constructors Constructor Description SlackConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetAuditEndpointUrlPrefix()IntegergetHttpClientCallTimeoutMillis()The underlying HTTP client's call timeout (in milliseconds).IntegergetHttpClientReadTimeoutMillis()The underlying HTTP client's read timeout (in milliseconds).List<HttpResponseListener>getHttpClientResponseHandlers()IntegergetHttpClientWriteTimeoutMillis()The underlying HTTP client's write timeout (in milliseconds).StringgetLegacyStatusEndpointUrlPrefix()MethodsConfiggetMethodsConfig()StringgetMethodsEndpointUrlPrefix()StringgetProxyUrl()The proxy server URL supposed to be used for all api calls.StringgetScimEndpointUrlPrefix()StringgetStatusEndpointUrlPrefix()inthashCode()booleanisFailOnUnknownProperties()If you would like to detect unknown properties by throwing exceptions, set this flag as true.booleanisLibraryMaintainerMode()Don't enable this flag in production.booleanisPrettyResponseLoggingEnabled()booleanisTokenExistenceVerificationEnabled()Slack Web API client verifies the existence of tokens before sending HTTP requests to Slack servers.voidsetAuditEndpointUrlPrefix(String auditEndpointUrlPrefix)voidsetFailOnUnknownProperties(boolean failOnUnknownProperties)If you would like to detect unknown properties by throwing exceptions, set this flag as true.voidsetHttpClientCallTimeoutMillis(Integer httpClientCallTimeoutMillis)The underlying HTTP client's call timeout (in milliseconds).voidsetHttpClientReadTimeoutMillis(Integer httpClientReadTimeoutMillis)The underlying HTTP client's read timeout (in milliseconds).voidsetHttpClientResponseHandlers(List<HttpResponseListener> httpClientResponseHandlers)voidsetHttpClientWriteTimeoutMillis(Integer httpClientWriteTimeoutMillis)The underlying HTTP client's write timeout (in milliseconds).voidsetLegacyStatusEndpointUrlPrefix(String legacyStatusEndpointUrlPrefix)voidsetLibraryMaintainerMode(boolean libraryMaintainerMode)Don't enable this flag in production.voidsetMethodsConfig(MethodsConfig methodsConfig)voidsetMethodsEndpointUrlPrefix(String methodsEndpointUrlPrefix)voidsetPrettyResponseLoggingEnabled(boolean prettyResponseLoggingEnabled)voidsetProxyUrl(String proxyUrl)The proxy server URL supposed to be used for all api calls.voidsetScimEndpointUrlPrefix(String scimEndpointUrlPrefix)voidsetStatusEndpointUrlPrefix(String statusEndpointUrlPrefix)voidsetTokenExistenceVerificationEnabled(boolean tokenExistenceVerificationEnabled)Slack Web API client verifies the existence of tokens before sending HTTP requests to Slack servers.StringtoString()
-
-
-
Field Detail
-
DEFAULT
public static final SlackConfig DEFAULT
The default instance is immutable. It's not allowed to modify the value runtime for any reasons.
-
-
Method Detail
-
getHttpClientReadTimeoutMillis
public Integer getHttpClientReadTimeoutMillis()
The underlying HTTP client's read timeout (in milliseconds). The default is 10 seconds. https://square.github.io/okhttp/4.x/okhttp/okhttp3/-ok-http-client/read-timeout-millis/
-
getHttpClientWriteTimeoutMillis
public Integer getHttpClientWriteTimeoutMillis()
The underlying HTTP client's write timeout (in milliseconds). The default is 10 seconds. https://square.github.io/okhttp/4.x/okhttp/okhttp3/-ok-http-client/write-timeout-millis/
-
getHttpClientCallTimeoutMillis
public Integer getHttpClientCallTimeoutMillis()
The underlying HTTP client's call timeout (in milliseconds). By default there is no timeout for complete calls, but there is for the connect, write, and read actions within a call. https://square.github.io/okhttp/4.x/okhttp/okhttp3/-ok-http-client/call-timeout-millis/
-
getProxyUrl
public String getProxyUrl()
The proxy server URL supposed to be used for all api calls.
-
isPrettyResponseLoggingEnabled
public boolean isPrettyResponseLoggingEnabled()
-
isLibraryMaintainerMode
public boolean isLibraryMaintainerMode()
Don't enable this flag in production. This flag enables some validation features for development.
-
isFailOnUnknownProperties
public boolean isFailOnUnknownProperties()
If you would like to detect unknown properties by throwing exceptions, set this flag as true.
-
isTokenExistenceVerificationEnabled
public boolean isTokenExistenceVerificationEnabled()
Slack Web API client verifies the existence of tokens before sending HTTP requests to Slack servers.
-
getHttpClientResponseHandlers
public List<HttpResponseListener> getHttpClientResponseHandlers()
-
getAuditEndpointUrlPrefix
public String getAuditEndpointUrlPrefix()
-
getMethodsEndpointUrlPrefix
public String getMethodsEndpointUrlPrefix()
-
getScimEndpointUrlPrefix
public String getScimEndpointUrlPrefix()
-
getStatusEndpointUrlPrefix
public String getStatusEndpointUrlPrefix()
-
getLegacyStatusEndpointUrlPrefix
public String getLegacyStatusEndpointUrlPrefix()
-
getMethodsConfig
public MethodsConfig getMethodsConfig()
-
setHttpClientReadTimeoutMillis
public void setHttpClientReadTimeoutMillis(Integer httpClientReadTimeoutMillis)
The underlying HTTP client's read timeout (in milliseconds). The default is 10 seconds. https://square.github.io/okhttp/4.x/okhttp/okhttp3/-ok-http-client/read-timeout-millis/
-
setHttpClientWriteTimeoutMillis
public void setHttpClientWriteTimeoutMillis(Integer httpClientWriteTimeoutMillis)
The underlying HTTP client's write timeout (in milliseconds). The default is 10 seconds. https://square.github.io/okhttp/4.x/okhttp/okhttp3/-ok-http-client/write-timeout-millis/
-
setHttpClientCallTimeoutMillis
public void setHttpClientCallTimeoutMillis(Integer httpClientCallTimeoutMillis)
The underlying HTTP client's call timeout (in milliseconds). By default there is no timeout for complete calls, but there is for the connect, write, and read actions within a call. https://square.github.io/okhttp/4.x/okhttp/okhttp3/-ok-http-client/call-timeout-millis/
-
setProxyUrl
public void setProxyUrl(String proxyUrl)
The proxy server URL supposed to be used for all api calls.
-
setPrettyResponseLoggingEnabled
public void setPrettyResponseLoggingEnabled(boolean prettyResponseLoggingEnabled)
-
setLibraryMaintainerMode
public void setLibraryMaintainerMode(boolean libraryMaintainerMode)
Don't enable this flag in production. This flag enables some validation features for development.
-
setFailOnUnknownProperties
public void setFailOnUnknownProperties(boolean failOnUnknownProperties)
If you would like to detect unknown properties by throwing exceptions, set this flag as true.
-
setTokenExistenceVerificationEnabled
public void setTokenExistenceVerificationEnabled(boolean tokenExistenceVerificationEnabled)
Slack Web API client verifies the existence of tokens before sending HTTP requests to Slack servers.
-
setHttpClientResponseHandlers
public void setHttpClientResponseHandlers(List<HttpResponseListener> httpClientResponseHandlers)
-
setAuditEndpointUrlPrefix
public void setAuditEndpointUrlPrefix(String auditEndpointUrlPrefix)
-
setMethodsEndpointUrlPrefix
public void setMethodsEndpointUrlPrefix(String methodsEndpointUrlPrefix)
-
setScimEndpointUrlPrefix
public void setScimEndpointUrlPrefix(String scimEndpointUrlPrefix)
-
setStatusEndpointUrlPrefix
public void setStatusEndpointUrlPrefix(String statusEndpointUrlPrefix)
-
setLegacyStatusEndpointUrlPrefix
public void setLegacyStatusEndpointUrlPrefix(String legacyStatusEndpointUrlPrefix)
-
setMethodsConfig
public void setMethodsConfig(MethodsConfig methodsConfig)
-
canEqual
protected boolean canEqual(Object other)
-
-