BotFrameworkConfig Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. SpeechConfig - com.
microsoft. cognitiveservices. speech. dialog. DialogServiceConfig - com.
microsoft. cognitiveservices. speech. dialog. BotFrameworkConfig
- com.
- com.
- com.
public final class BotFrameworkConfig
extends DialogServiceConfig
Class that defines configurations for the dialog service connector object for using a Bot Framework backend.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Bot |
fromAuthorizationToken(String authorizationToken, String region)
Creates an instance of a bot framework config with specified authorization token and service region. |
static
Bot |
fromAuthorizationToken(String authorizationToken, String region, String botId)
Creates an instance of a bot framework config with specified authorization token, service region, and bot ID. |
static
Bot |
fromSubscription(String subscription, String region)
Creates an instance of the bot framework config with the specified subscription and region. |
static
Bot |
fromSubscription(String subscription, String region, String botId)
Creates an instance of the bot framework config with the specified subscription, region, and bot ID. |
Methods inherited from SpeechConfig
Methods inherited from DialogServiceConfig
Methods inherited from java.lang.Object
Method Details
fromAuthorizationToken
public static BotFrameworkConfig fromAuthorizationToken(String authorizationToken, String region)
Creates an instance of a bot framework config with specified authorization token and service region. Note: The caller needs to ensure that the authorization token is valid. Before the authorization token expires, the caller needs to refresh it by calling this setter with a new valid token. As configuration values are copied when creating a new recognizer, the new token value will not apply to recognizers that have already been created. For recognizers that have been created before, you need to set authorization token of the corresponding recognizer to refresh the token. Otherwise, the recognizers will encounter errors during recognition.
Parameters:
Returns:
fromAuthorizationToken
public static BotFrameworkConfig fromAuthorizationToken(String authorizationToken, String region, String botId)
Creates an instance of a bot framework config with specified authorization token, service region, and bot ID. Note: The caller needs to ensure that the authorization token is valid. Before the authorization token expires, the caller needs to refresh it by calling this setter with a new valid token. As configuration values are copied when creating a new recognizer, the new token value will not apply to recognizers that have already been created. For recognizers that have been created before, you need to set authorization token of the corresponding recognizer to refresh the token. Otherwise, the recognizers will encounter errors during recognition.
Parameters:
Returns:
fromSubscription
public static BotFrameworkConfig fromSubscription(String subscription, String region)
Creates an instance of the bot framework config with the specified subscription and region.
Parameters:
Returns:
fromSubscription
public static BotFrameworkConfig fromSubscription(String subscription, String region, String botId)
Creates an instance of the bot framework config with the specified subscription, region, and bot ID.
Parameters:
Returns:
Applies to
Azure SDK for Java