ConnectorClient 介面

實作

java.lang.AutoCloseable

public interface ConnectorClient
extends java.lang.AutoCloseable

ConnectorClient 類別的介面。

方法摘要

修飾詞與類型 方法與描述
abstract java.lang.String baseUrl()

傳回此連接器用戶端的基底 URL。

abstract ServiceClientCredentials credentials()

傳回使用中的認證。

abstract java.lang.String getAcceptLanguage()

取得回應的慣用語言。

abstract Attachments getAttachments()

取得 Attachments 物件,以存取其作業。

abstract Conversations getConversations()

取得 Conversations 物件,以存取其作業。

abstract boolean getGenerateClientRequestId()

當設定為 true 時,會產生唯一的 x-ms-client-request-id 值,並包含在每個要求中。

abstract int getLongRunningOperationRetryTimeout()

取得長時間執行作業的重試逾時,以秒為單位。

abstract RestClient getRestClient()

取得 REST 用戶端。

abstract java.lang.String getUserAgent()

取得用戶端 User-Agent 標頭。

abstract void setAcceptLanguage(String acceptLanguage)

設定回應的慣用語言。

abstract void setGenerateClientRequestId(boolean generateClientRequestId)

當設定為 true 時,會產生唯一的 x-ms-client-request-id 值,並包含在每個要求中。

abstract void setLongRunningOperationRetryTimeout(int timeout)

設定長時間執行作業的重試逾時,以秒為單位。

方法詳細資料

baseUrl

public abstract String baseUrl()

傳回此 ConnectorClient 的基底 URL。

傳回:

基底 URL。

credentials

public abstract ServiceClientCredentials credentials()

傳回使用中的認證。

傳回:

使用中的 ServiceClientCredentials。

getAcceptLanguage

public abstract String getAcceptLanguage()

取得回應的慣用語言。

傳回:

acceptLanguage 值。

getAttachments

public abstract Attachments getAttachments()

取得 Attachments 物件,以存取其作業。

傳回:

Attachments 物件。

getConversations

public abstract Conversations getConversations()

取得 Conversations 物件,以存取其作業。

傳回:

Conversations 物件。

getGenerateClientRequestId

public abstract boolean getGenerateClientRequestId()

當設定為 true 時,會產生唯一的 x-ms-client-request-id 值,並包含在每個要求中。 為 true。

傳回:

generateClientRequestId 值。

getLongRunningOperationRetryTimeout

public abstract int getLongRunningOperationRetryTimeout()

取得長時間執行作業的重試逾時,以秒為單位。 預設值為30.。

傳回:

逾時值。

getRestClient

public abstract RestClient getRestClient()

取得 REST 用戶端。

傳回:

RestClient 物件。

getUserAgent

public abstract String getUserAgent()

取得用戶端 User-Agent 標頭。

傳回:

使用者代理程式字串。

setAcceptLanguage

public abstract void setAcceptLanguage(String acceptLanguage)

設定回應的慣用語言。

參數:

acceptLanguage - acceptLanguage 值。

setGenerateClientRequestId

public abstract void setGenerateClientRequestId(boolean generateClientRequestId)

當設定為 true 時,會產生唯一的 x-ms-client-request-id 值,並包含在每個要求中。 默認值為 true。

參數:

generateClientRequestId - generateClientRequestId 值。

setLongRunningOperationRetryTimeout

public abstract void setLongRunningOperationRetryTimeout(int timeout)

設定長時間執行作業的重試逾時,以秒為單位。 預設值為 30。

參數:

timeout - longRunningOperationRetryTimeout 值。

適用於