SimpleChannelProvider 類別
- java.
lang. Object - com.
microsoft. bot. connector. authentication. SimpleChannelProvider
- com.
實作
public class SimpleChannelProvider
implements ChannelProvider
具有記憶體內部值的 ChannelProvider。
建構函式摘要
| 建構函式 | Description |
|---|---|
| SimpleChannelProvider() |
建立簡單 |
| SimpleChannelProvider(String withChannelService) |
使用指定的通道 |
方法摘要
| 修飾詞與類型 | 方法與描述 |
|---|---|
| java.util.concurrent.CompletableFuture<java.lang.String> |
getChannelService()
傳回通道服務值。 |
| boolean |
isGovernment()
指出這是否為 Gov 通道提供者。 |
| boolean |
isPublicAzure()
指出這是否為公用 Azure。 |
方法繼承來源 java.lang.Object
java.lang.Object.clone
java.lang.Object.equals
java.lang.Object.finalize
java.lang.Object.getClass
java.lang.Object.hashCode
java.lang.Object.notify
java.lang.Object.notifyAll
java.lang.Object.toString
java.lang.Object.wait
java.lang.Object.wait
java.lang.Object.wait
建構函式詳細資料
SimpleChannelProvider
public SimpleChannelProvider()
建立沒有 ChannelService 的 SimpleChannelProvider,其將使用公用 Azure。
SimpleChannelProvider
public SimpleChannelProvider(String withChannelService)
使用指定的 ChannelService 建立 SimpleChannelProvider。
參數:
withChannelService
- 要使用的 ChannelService。 Null 或空字串代表公用 Azure、字串串 'https://botframework.us' 代表 US Government Azure,而其他值則適用於私人頻道。
方法詳細資料
getChannelService
public CompletableFuture
傳回通道服務值。
傳回:
通道服務。
isGovernment
public boolean isGovernment()
指出這是否為 Gov 通道提供者。
傳回:
True 是表示 如果 Gov。
isPublicAzure
public boolean isPublicAzure()
指出這是否為公用 Azure。
傳回:
True 是表示 如果 pubic Azure。