SimpleChannelProvider 类

  • java.lang.Object
    • com.microsoft.bot.connector.authentication.SimpleChannelProvider

实现

public class SimpleChannelProvider
implements ChannelProvider

具有内存中值的 ChannelProvider。

构造函数摘要

构造函数 说明
SimpleChannelProvider()

创建一个简单频道提供程序,没有通道服务,该服务将使用公共 Azure。

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”表示美国政府 Azure,其他值用于专用通道。

方法详细信息

getChannelService

public CompletableFuture getChannelService()

返回通道服务值。

返回:

通道服务。

isGovernment

public boolean isGovernment()

指示此提供程序是否为 Gov 通道提供程序。

返回:

如此 如果州长。

isPublicAzure

public boolean isPublicAzure()

指示这是否为公共 Azure。

返回:

如此 如果 pubic Azure。

适用于