パッケージ com.linecorp.bot.client
クラス ManageAudienceBlobClientBuilder
- java.lang.Object
-
- com.linecorp.bot.client.ManageAudienceBlobClientBuilder
-
public class ManageAudienceBlobClientBuilder extends java.lang.Object
-
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 ManageAudienceBlobClientBuilder
addAuthenticationHeader(boolean addAuthenticationHeader)
Add authentication header.ManageAudienceBlobClientBuilder
additionalInterceptors(java.util.List<okhttp3.Interceptor> additionalInterceptors)
Custom interceptors.ManageAudienceBlobClientBuilder
apiEndPoint(java.net.URI apiEndPoint)
API Endpoint.ManageAudienceBlobClient
build()
Creates a newManageAudienceBlobService
.ManageAudienceBlobClientBuilder
channelToken(java.lang.String channelToken)
Set fixed channel token.ManageAudienceBlobClientBuilder
channelTokenSupplier(ChannelTokenSupplier channelTokenSupplier)
Channel token supplier of this client.ManageAudienceBlobClientBuilder
connectTimeout(long connectTimeout)
Connection timeout.ManageAudienceBlobClientBuilder
okHttpClientBuilder(okhttp3.OkHttpClient.Builder okHttpClientBuilder, boolean addAuthenticationHeader)
Set customized OkHttpClient.Builder.ManageAudienceBlobClientBuilder
readTimeout(long readTimeout)
Connection timeout.ManageAudienceBlobClientBuilder
retrofitBuilder(retrofit2.Retrofit.Builder retrofitBuilder)
CustomRetrofit.Builder
used internally.java.lang.String
toString()
ManageAudienceBlobClientBuilder
writeTimeout(long writeTimeout)
Write timeout.
-
-
-
メソッドの詳細
-
apiEndPoint
public ManageAudienceBlobClientBuilder apiEndPoint(java.net.URI apiEndPoint)
API Endpoint.Default value = "https://api.line.me/".
-
channelToken
public ManageAudienceBlobClientBuilder channelToken(java.lang.String channelToken)
Set fixed channel token. This overwriteschannelTokenSupplier(ChannelTokenSupplier)
.
-
okHttpClientBuilder
public ManageAudienceBlobClientBuilder okHttpClientBuilder(@NonNull okhttp3.OkHttpClient.Builder okHttpClientBuilder, boolean addAuthenticationHeader)
Set customized OkHttpClient.Builder.In case of you need your own customized
OkHttpClient
, this builder allows specifyOkHttpClient.Builder
instance.To use this method, please add dependency to 'com.squareup.retrofit2:retrofit'.
- パラメータ:
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 ManageAudienceBlobClient build()
Creates a newManageAudienceBlobService
.
-
toString
public java.lang.String toString()
- オーバーライド:
toString
クラス内java.lang.Object
-
connectTimeout
public ManageAudienceBlobClientBuilder connectTimeout(long connectTimeout)
Connection timeout.Default value = 10000Lms.
- 戻り値:
this
.
-
readTimeout
public ManageAudienceBlobClientBuilder readTimeout(long readTimeout)
Connection timeout.Default value = 10000Lms.
- 戻り値:
this
.
-
writeTimeout
public ManageAudienceBlobClientBuilder writeTimeout(long writeTimeout)
Write timeout.Default value = 10000Lms.
- 戻り値:
this
.
-
channelTokenSupplier
public ManageAudienceBlobClientBuilder channelTokenSupplier(ChannelTokenSupplier channelTokenSupplier)
Channel token supplier of this client.MUST BE NULL except you configured your own
- 戻り値:
this
.
-
retrofitBuilder
public ManageAudienceBlobClientBuilder retrofitBuilder(retrofit2.Retrofit.Builder retrofitBuilder)
CustomRetrofit.Builder
used internally.If you want to use your own setting, specify
Retrofit.Builder
instance. Default builder is used in case ofnull
(default).To use this method, please add dependency to 'com.squareup.retrofit2:retrofit'.
- 戻り値:
this
.- 関連項目:
createDefaultRetrofitBuilder()
-
addAuthenticationHeader
public ManageAudienceBlobClientBuilder addAuthenticationHeader(boolean addAuthenticationHeader)
Add authentication header.Default =
true
. If you manage authentication header yourself, set tofalse
.- 戻り値:
this
.
-
additionalInterceptors
public ManageAudienceBlobClientBuilder additionalInterceptors(java.util.List<okhttp3.Interceptor> additionalInterceptors)
Custom interceptors.You can add your own interceptors.
Note: Authentication interceptor is automatically added by default.
- 戻り値:
this
.- 関連項目:
addAuthenticationHeader(boolean)
-
-