Class ManageAudienceClientBuilder

java.lang.Object
com.linecorp.bot.client.ManageAudienceClientBuilder

public class ManageAudienceClientBuilder extends Object
  • Method Details

    • apiEndPoint

      public ManageAudienceClientBuilder apiEndPoint(URI apiEndPoint)
      API Endpoint.

      Default value = "https://api.line.me/".

    • channelToken

      public ManageAudienceClientBuilder channelToken(String channelToken)
      Set fixed channel token. This overwrites channelTokenSupplier(ChannelTokenSupplier).
      See Also:
    • okHttpClientBuilder

      public ManageAudienceClientBuilder okHttpClientBuilder(@NonNull okhttp3.OkHttpClient.Builder okHttpClientBuilder, boolean addAuthenticationHeader)
      Set customized OkHttpClient.Builder.

      In case of you need your own customized OkHttpClient, this builder allows specify OkHttpClient.Builder instance.

      To use this method, please add dependency to 'com.squareup.retrofit2:retrofit'.

      Parameters:
      addAuthenticationHeader - If it's true, the default authentication headers will be attached to all requests. Otherwise if it's false, you should insert your own authentication headers by yourself.
    • build

      public ManageAudienceClient build()
      Creates a new LineMessagingService.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • connectTimeout

      public ManageAudienceClientBuilder connectTimeout(long connectTimeout)
      Connection timeout.

      Default value = 10000Lms.

      Returns:
      this.
    • readTimeout

      public ManageAudienceClientBuilder readTimeout(long readTimeout)
      Connection timeout.

      Default value = 10000Lms.

      Returns:
      this.
    • writeTimeout

      public ManageAudienceClientBuilder writeTimeout(long writeTimeout)
      Write timeout.

      Default value = 10000Lms.

      Returns:
      this.
    • channelTokenSupplier

      public ManageAudienceClientBuilder channelTokenSupplier(ChannelTokenSupplier channelTokenSupplier)
      Channel token supplier of this client.

      MUST BE NULL except you configured your own

      Returns:
      this.
    • retrofitBuilder

      public ManageAudienceClientBuilder retrofitBuilder(retrofit2.Retrofit.Builder retrofitBuilder)
      Custom Retrofit.Builder used internally.

      If you want to use your own setting, specify Retrofit.Builder instance. Default builder is used in case of null (default).

      To use this method, please add dependency to 'com.squareup.retrofit2:retrofit'.

      Returns:
      this.
      See Also:
      • createDefaultRetrofitBuilder()
    • addAuthenticationHeader

      public ManageAudienceClientBuilder addAuthenticationHeader(boolean addAuthenticationHeader)
      Add authentication header.

      Default = . If you manage authentication header yourself, set to false.

      Returns:
      this.
    • additionalInterceptors

      public ManageAudienceClientBuilder additionalInterceptors(List<okhttp3.Interceptor> additionalInterceptors)
      Custom interceptors.

      You can add your own interceptors.

      Note: Authentication interceptor is automatically added by default.

      Returns:
      this.
      See Also: