Package com.slack.api
Class SlackConfig
java.lang.Object
com.slack.api.SlackConfig
public class SlackConfig
extends java.lang.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
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)AuditConfiggetAuditConfig()java.lang.StringgetAuditEndpointUrlPrefix()java.lang.IntegergetHttpClientCallTimeoutMillis()The underlying HTTP client's call timeout (in milliseconds).java.lang.IntegergetHttpClientReadTimeoutMillis()The underlying HTTP client's read timeout (in milliseconds).java.util.List<HttpResponseListener>getHttpClientResponseHandlers()java.lang.IntegergetHttpClientWriteTimeoutMillis()The underlying HTTP client's write timeout (in milliseconds).java.lang.StringgetLegacyStatusEndpointUrlPrefix()MethodsConfiggetMethodsConfig()java.lang.StringgetMethodsEndpointUrlPrefix()java.util.Map<java.lang.String,java.lang.String>getProxyHeaders()Additional headers for proxy (e.g., Proxy-Authorization)java.lang.StringgetProxyUrl()The proxy server URL supposed to be used for all api calls.SCIMConfiggetSCIMConfig()java.lang.StringgetScimEndpointUrlPrefix()java.lang.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.voidsetAuditConfig(AuditConfig auditConfig)voidsetAuditEndpointUrlPrefix(java.lang.String auditEndpointUrlPrefix)voidsetFailOnUnknownProperties(boolean failOnUnknownProperties)If you would like to detect unknown properties by throwing exceptions, set this flag as true.voidsetHttpClientCallTimeoutMillis(java.lang.Integer httpClientCallTimeoutMillis)The underlying HTTP client's call timeout (in milliseconds).voidsetHttpClientReadTimeoutMillis(java.lang.Integer httpClientReadTimeoutMillis)The underlying HTTP client's read timeout (in milliseconds).voidsetHttpClientResponseHandlers(java.util.List<HttpResponseListener> httpClientResponseHandlers)voidsetHttpClientWriteTimeoutMillis(java.lang.Integer httpClientWriteTimeoutMillis)The underlying HTTP client's write timeout (in milliseconds).voidsetLegacyStatusEndpointUrlPrefix(java.lang.String legacyStatusEndpointUrlPrefix)voidsetLibraryMaintainerMode(boolean libraryMaintainerMode)Don't enable this flag in production.voidsetMethodsConfig(MethodsConfig methodsConfig)voidsetMethodsEndpointUrlPrefix(java.lang.String methodsEndpointUrlPrefix)voidsetPrettyResponseLoggingEnabled(boolean prettyResponseLoggingEnabled)voidsetProxyHeaders(java.util.Map<java.lang.String,java.lang.String> proxyHeaders)Additional headers for proxy (e.g., Proxy-Authorization)voidsetProxyUrl(java.lang.String proxyUrl)The proxy server URL supposed to be used for all api calls.voidsetSCIMConfig(SCIMConfig sCIMConfig)voidsetScimEndpointUrlPrefix(java.lang.String scimEndpointUrlPrefix)voidsetStatusEndpointUrlPrefix(java.lang.String statusEndpointUrlPrefix)voidsetTokenExistenceVerificationEnabled(boolean tokenExistenceVerificationEnabled)Slack Web API client verifies the existence of tokens before sending HTTP requests to Slack servers.java.lang.StringtoString()
-
Field Details
-
DEFAULT
The default instance is immutable. It's not allowed to modify the value runtime for any reasons.
-
-
Constructor Details
-
SlackConfig
public SlackConfig()
-
-
Method Details
-
getHttpClientReadTimeoutMillis
public java.lang.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 java.lang.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 java.lang.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 java.lang.String getProxyUrl()The proxy server URL supposed to be used for all api calls. -
getProxyHeaders
public java.util.Map<java.lang.String,java.lang.String> getProxyHeaders()Additional headers for proxy (e.g., Proxy-Authorization) -
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
-
getAuditEndpointUrlPrefix
public java.lang.String getAuditEndpointUrlPrefix() -
getMethodsEndpointUrlPrefix
public java.lang.String getMethodsEndpointUrlPrefix() -
getScimEndpointUrlPrefix
public java.lang.String getScimEndpointUrlPrefix() -
getStatusEndpointUrlPrefix
public java.lang.String getStatusEndpointUrlPrefix() -
getLegacyStatusEndpointUrlPrefix
public java.lang.String getLegacyStatusEndpointUrlPrefix() -
getMethodsConfig
-
getAuditConfig
-
getSCIMConfig
-
setHttpClientReadTimeoutMillis
public void setHttpClientReadTimeoutMillis(java.lang.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(java.lang.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(java.lang.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(java.lang.String proxyUrl)The proxy server URL supposed to be used for all api calls. -
setProxyHeaders
public void setProxyHeaders(java.util.Map<java.lang.String,java.lang.String> proxyHeaders)Additional headers for proxy (e.g., Proxy-Authorization) -
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(java.util.List<HttpResponseListener> httpClientResponseHandlers) -
setAuditEndpointUrlPrefix
public void setAuditEndpointUrlPrefix(java.lang.String auditEndpointUrlPrefix) -
setMethodsEndpointUrlPrefix
public void setMethodsEndpointUrlPrefix(java.lang.String methodsEndpointUrlPrefix) -
setScimEndpointUrlPrefix
public void setScimEndpointUrlPrefix(java.lang.String scimEndpointUrlPrefix) -
setStatusEndpointUrlPrefix
public void setStatusEndpointUrlPrefix(java.lang.String statusEndpointUrlPrefix) -
setLegacyStatusEndpointUrlPrefix
public void setLegacyStatusEndpointUrlPrefix(java.lang.String legacyStatusEndpointUrlPrefix) -
setMethodsConfig
-
setAuditConfig
-
setSCIMConfig
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other) -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-