Package com.slack.api

Class SlackConfig


  • public class SlackConfig
    extends Object
    The basic configuration of this SDK. Some settings can be propagated to sub modules such as Bolt.
    • 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.
    • Constructor Detail

      • SlackConfig

        public SlackConfig()
    • Method Detail

      • 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.
      • getAuditEndpointUrlPrefix

        public String getAuditEndpointUrlPrefix()
      • getMethodsEndpointUrlPrefix

        public String getMethodsEndpointUrlPrefix()
      • getScimEndpointUrlPrefix

        public String getScimEndpointUrlPrefix()
      • getStatusEndpointUrlPrefix

        public String getStatusEndpointUrlPrefix()
      • getLegacyStatusEndpointUrlPrefix

        public String getLegacyStatusEndpointUrlPrefix()
      • 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object