Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Java] Update Java samples to consume the new CloudAdapterWithErrorHandler #274

Draft
wants to merge 53 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
e710254
Update samples to consume the new CloudAdapterWithErrorHandler
FedericoBernal Jul 8, 2021
753b391
Update samples to return CloudAdapter instead of BotFrameworkHttpAdapter
FedericoBernal Jul 8, 2021
1051297
Fix imports
FedericoBernal Jul 8, 2021
a384c72
Update getCloudAdapter method
FedericoBernal Jul 8, 2021
9afbb4f
Add missing dependecy
FedericoBernal Jul 19, 2021
b9f72e5
Updated CloudAdapterWithErrorHandler constructor initialization
luislera Jul 19, 2021
444a916
Merge pull request #275 from southworks/internal/feature/southworks/u…
ldardick Jul 19, 2021
91edbda
Ensure consistency accessing local resources on all samples
FedericoBernal Jul 20, 2021
da87810
Ensure consistency accessing local resources on the generator
FedericoBernal Jul 20, 2021
566ef9f
Added a comment explaining a failing condition
ldardick Jul 20, 2021
280fad1
Switched AD App for App Registration for clarification
ldardick Jul 20, 2021
b091851
Removed unused class and added CloudAdapterWithErrorHandler class to …
luislera Jul 20, 2021
35d7121
Rollbacked constructor initialization and removed unused import
luislera Jul 20, 2021
d7b5eff
Fixed indentation issue
luislera Jul 21, 2021
a47b973
Added a missing import to enable using BlobStorage and CosmosDB
ldardick Jul 21, 2021
aaa43cb
Merge pull request #276 from southworks/internal/feature/southworks/u…
ldardick Jul 21, 2021
bef3afc
Merge pull request #278 from southworks/internal/feature/southworks/a…
ldardick Jul 21, 2021
3cbf5e5
Revert "Ensure consistency accessing local resources on the generator"
FedericoBernal Jul 21, 2021
1cbc41d
Apply feedback
FedericoBernal Jul 22, 2021
2cccbb7
Enhanced the comment to include the expected outcome
ldardick Jul 22, 2021
750d838
Merge pull request #279 from southworks/internal/feature/southworks/u…
ldardick Jul 22, 2021
9ca7891
Merge pull request #281 from southworks/internal/feature/southworks/u…
ldardick Jul 22, 2021
575b726
Modified AttachmentsBot class in sample 15.handling-attachments to ac…
FedericoBernal Jul 22, 2021
8c60f54
Merge pull request #280 from southworks/internal/feature/southworks/u…
ldardick Jul 22, 2021
9f979a6
Add QnAAuthKey property in application.properties of sample 49.qnamak…
FedericoBernal Jul 23, 2021
c2f9702
Update Sample 46 README
ldardick Jul 27, 2021
bfa6144
Updated Sample 51 README
ldardick Jul 27, 2021
96610c3
Updated Sample 11 README with instructions about how to get parameter…
ldardick Jul 27, 2021
2b5c861
Updated Sample 14 README with QnAMaker instructions
ldardick Jul 27, 2021
b2c9981
Updated README 16 with clarification about how to send a request
ldardick Jul 27, 2021
2b80d52
Update README.md
ldardick Jul 27, 2021
13b5558
Added the instructions to configure authentication
ldardick Jul 27, 2021
5f4be3b
Merge pull request #282 from southworks/internal/feature/southworks/u…
ldardick Jul 27, 2021
34a8463
Added instructions to run ngrok
ldardick Jul 27, 2021
8b5f65f
Fixed typo
ldardick Jul 27, 2021
a2cfce0
Merge pull request #283 from southworks/internal/feature/southworks/u…
ldardick Jul 27, 2021
4df04e6
Added additional scopes to manifest file
luislera Jul 28, 2021
8940cc4
Merge pull request #284 from southworks/internal/feature/southworks/u…
ldardick Jul 28, 2021
6a998a9
Added the AdapterWithInspection class
ldardick Jul 28, 2021
1558a8f
Instantiated the Adapter with Inspection and used the Cloud Adapter c…
ldardick Jul 28, 2021
ac3eb2e
Updated the attachment initialization to avoid a null reference excep…
luislera Jul 29, 2021
d99ca62
Updated the sample to consume the class defined in the SDK
ldardick Aug 2, 2021
8cfbc2c
Fixed sample 17 middleware usage
ldardick Aug 2, 2021
3b67a1d
Merge pull request #285 from southworks/internal/feature/southworks/u…
ldardick Aug 3, 2021
07ee5ad
Merge pull request #286 from southworks/internal/feature/southworks/u…
ldardick Aug 3, 2021
e877a31
Modify all samples to use BotCloudAdapterController
ldardick Aug 3, 2021
3bfd086
Updated SDK version
ldardick Aug 3, 2021
daacd8c
Merge branch 'internal/feature/southworks/update-samples/update-sdk-v…
ldardick Aug 3, 2021
be53f49
Specified the expected adapter type
ldardick Aug 3, 2021
cf080e6
Added missing dependency
ldardick Aug 3, 2021
58ec9ac
Merge branch 'internal/feature/southworks/update-samples/update-sdk-v…
ldardick Aug 3, 2021
a3a74bf
Merge pull request #288 from southworks/internal/feature/southworks/u…
ldardick Aug 3, 2021
b0163cc
Merge pull request #287 from southworks/internal/feature/southworks/u…
ldardick Aug 4, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
package com.microsoft.bot.sample.echo;

import com.microsoft.bot.builder.Bot;
import com.microsoft.bot.integration.AdapterWithErrorHandler;
import com.microsoft.bot.integration.BotFrameworkHttpAdapter;
import com.microsoft.bot.integration.CloudAdapterWithErrorHandler;
import com.microsoft.bot.integration.Configuration;
import com.microsoft.bot.integration.spring.BotController;
import com.microsoft.bot.integration.spring.BotDependencyConfiguration;
Expand Down Expand Up @@ -60,6 +60,6 @@ public Bot getBot() {
*/
@Override
public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configuration) {
Batta32 marked this conversation as resolved.
Show resolved Hide resolved
return new AdapterWithErrorHandler(configuration);
return new CloudAdapterWithErrorHandler(configuration);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import com.microsoft.bot.builder.Bot;
import com.microsoft.bot.builder.UserState;
import com.microsoft.bot.integration.AdapterWithErrorHandler;
import com.microsoft.bot.integration.CloudAdapterWithErrorHandler;
import com.microsoft.bot.integration.BotFrameworkHttpAdapter;
import com.microsoft.bot.integration.Configuration;
import com.microsoft.bot.integration.spring.BotController;
Expand Down Expand Up @@ -60,6 +60,6 @@ public Bot getBot(UserState userState) {
*/
@Override
public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configuration) {
return new AdapterWithErrorHandler(configuration);
return new CloudAdapterWithErrorHandler(configuration);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import com.microsoft.bot.builder.ConversationState;
import com.microsoft.bot.builder.UserState;
import com.microsoft.bot.dialogs.Dialog;
import com.microsoft.bot.integration.AdapterWithErrorHandler;
import com.microsoft.bot.integration.CloudAdapterWithErrorHandler;
import com.microsoft.bot.integration.BotFrameworkHttpAdapter;
import com.microsoft.bot.integration.Configuration;
import com.microsoft.bot.integration.spring.BotController;
Expand Down Expand Up @@ -81,6 +81,6 @@ public Dialog getRootDialog(UserState userState) {
*/
@Override
public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configuration) {
return new AdapterWithErrorHandler(configuration);
return new CloudAdapterWithErrorHandler(configuration);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import com.microsoft.bot.builder.ConversationState;
import com.microsoft.bot.builder.UserState;
import com.microsoft.bot.dialogs.Dialog;
import com.microsoft.bot.integration.AdapterWithErrorHandler;
import com.microsoft.bot.integration.CloudAdapterWithErrorHandler;
import com.microsoft.bot.integration.BotFrameworkHttpAdapter;
import com.microsoft.bot.integration.Configuration;
import com.microsoft.bot.integration.spring.BotController;
Expand Down Expand Up @@ -81,6 +81,6 @@ public Dialog getRootDialog() {
*/
@Override
public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configuration) {
return new AdapterWithErrorHandler(configuration);
return new CloudAdapterWithErrorHandler(configuration);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package com.microsoft.bot.sample.usingadaptivecards;

import com.microsoft.bot.builder.Bot;
import com.microsoft.bot.integration.AdapterWithErrorHandler;
import com.microsoft.bot.integration.CloudAdapterWithErrorHandler;
import com.microsoft.bot.integration.BotFrameworkHttpAdapter;
import com.microsoft.bot.integration.Configuration;
import com.microsoft.bot.integration.spring.BotController;
Expand Down Expand Up @@ -61,6 +61,6 @@ public Bot getBot() {
*/
@Override
public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configuration) {
return new AdapterWithErrorHandler(configuration);
return new CloudAdapterWithErrorHandler(configuration);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package com.microsoft.bot.sample.suggestedactions;

import com.microsoft.bot.builder.Bot;
import com.microsoft.bot.integration.AdapterWithErrorHandler;
import com.microsoft.bot.integration.CloudAdapterWithErrorHandler;
import com.microsoft.bot.integration.BotFrameworkHttpAdapter;
import com.microsoft.bot.integration.Configuration;
import com.microsoft.bot.integration.spring.BotController;
Expand Down Expand Up @@ -59,6 +59,6 @@ public Bot getBot() {
*/
@Override
public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configuration) {
return new AdapterWithErrorHandler(configuration);
return new CloudAdapterWithErrorHandler(configuration);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package com.microsoft.bot.sample.qnamaker;

import com.microsoft.bot.builder.Bot;
import com.microsoft.bot.integration.AdapterWithErrorHandler;
import com.microsoft.bot.integration.CloudAdapterWithErrorHandler;
import com.microsoft.bot.integration.BotFrameworkHttpAdapter;
import com.microsoft.bot.integration.Configuration;
import com.microsoft.bot.integration.spring.BotController;
Expand Down Expand Up @@ -59,7 +59,7 @@ public Bot getBot(Configuration configuration) {
*/
@Override
public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configuration) {
return new AdapterWithErrorHandler(configuration);
return new CloudAdapterWithErrorHandler(configuration);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import com.microsoft.bot.builder.Bot;
import com.microsoft.bot.builder.ConversationState;
import com.microsoft.bot.builder.UserState;
import com.microsoft.bot.integration.AdapterWithErrorHandler;
import com.microsoft.bot.integration.CloudAdapterWithErrorHandler;
import com.microsoft.bot.integration.BotFrameworkHttpAdapter;
import com.microsoft.bot.integration.Configuration;
import com.microsoft.bot.integration.spring.BotController;
Expand Down Expand Up @@ -73,7 +73,7 @@ public Bot getBot(
*/
@Override
public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configuration) {
return new AdapterWithErrorHandler(configuration);
return new CloudAdapterWithErrorHandler(configuration);
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package com.microsoft.bot.sample.nlpwithdispatch;

import com.microsoft.bot.builder.Bot;
import com.microsoft.bot.integration.AdapterWithErrorHandler;
import com.microsoft.bot.integration.CloudAdapterWithErrorHandler;
import com.microsoft.bot.integration.BotFrameworkHttpAdapter;
import com.microsoft.bot.integration.Configuration;
import com.microsoft.bot.integration.spring.BotController;
Expand Down Expand Up @@ -67,6 +67,6 @@ public BotServices getBotServices(Configuration configuration) {
*/
@Override
public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configuration) {
return new AdapterWithErrorHandler(configuration);
return new CloudAdapterWithErrorHandler(configuration);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package com.microsoft.bot.sample.attachments;

import com.microsoft.bot.builder.Bot;
import com.microsoft.bot.integration.AdapterWithErrorHandler;
import com.microsoft.bot.integration.CloudAdapterWithErrorHandler;
import com.microsoft.bot.integration.BotFrameworkHttpAdapter;
import com.microsoft.bot.integration.Configuration;
import com.microsoft.bot.integration.spring.BotController;
Expand Down Expand Up @@ -60,6 +60,6 @@ public Bot getBot() {
*/
@Override
public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configuration) {
return new AdapterWithErrorHandler(configuration);
return new CloudAdapterWithErrorHandler(configuration);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package com.microsoft.bot.sample.proactive;

import com.microsoft.bot.builder.Bot;
import com.microsoft.bot.integration.AdapterWithErrorHandler;
import com.microsoft.bot.integration.CloudAdapterWithErrorHandler;
import com.microsoft.bot.integration.BotFrameworkHttpAdapter;
import com.microsoft.bot.integration.Configuration;
import com.microsoft.bot.integration.spring.BotController;
Expand Down Expand Up @@ -72,6 +72,6 @@ public ConversationReferences getConversationReferences() {
*/
@Override
public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configuration) {
return new AdapterWithErrorHandler(configuration);
return new CloudAdapterWithErrorHandler(configuration);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import com.microsoft.bot.builder.ConversationState;
import com.microsoft.bot.builder.Storage;
import com.microsoft.bot.builder.UserState;
import com.microsoft.bot.integration.AdapterWithErrorHandler;
import com.microsoft.bot.integration.CloudAdapterWithErrorHandler;
import com.microsoft.bot.integration.BotFrameworkHttpAdapter;
import com.microsoft.bot.integration.Configuration;
import com.microsoft.bot.integration.spring.BotController;
Expand Down Expand Up @@ -68,7 +68,7 @@ public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configur
Storage storage = this.getStorage();
ConversationState conversationState = this.getConversationState(storage);

BotFrameworkHttpAdapter adapter = new AdapterWithErrorHandler(configuration, conversationState);
BotFrameworkHttpAdapter adapter = new CloudAdapterWithErrorHandler(configuration, conversationState);
TranslationMiddleware translationMiddleware = this.getTranslationMiddleware(configuration);
adapter.use(translationMiddleware);
return adapter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import com.microsoft.bot.builder.ConversationState;
import com.microsoft.bot.builder.UserState;
import com.microsoft.bot.dialogs.Dialog;
import com.microsoft.bot.integration.AdapterWithErrorHandler;
import com.microsoft.bot.integration.CloudAdapterWithErrorHandler;
import com.microsoft.bot.integration.BotFrameworkHttpAdapter;
import com.microsoft.bot.integration.Configuration;
import com.microsoft.bot.integration.spring.BotController;
Expand Down Expand Up @@ -66,6 +66,6 @@ public Bot getBot(
*/
@Override
public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configuration) {
return new AdapterWithErrorHandler(configuration);
return new CloudAdapterWithErrorHandler(configuration);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import com.microsoft.bot.builder.ConversationState;
import com.microsoft.bot.builder.UserState;
import com.microsoft.bot.dialogs.Dialog;
import com.microsoft.bot.integration.AdapterWithErrorHandler;
import com.microsoft.bot.integration.CloudAdapterWithErrorHandler;
import com.microsoft.bot.integration.BotFrameworkHttpAdapter;
import com.microsoft.bot.integration.Configuration;
import com.microsoft.bot.integration.spring.BotController;
Expand Down Expand Up @@ -81,6 +81,6 @@ public Dialog getRootDialog(UserState userState) {
*/
@Override
public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configuration) {
return new AdapterWithErrorHandler(configuration);
return new CloudAdapterWithErrorHandler(configuration);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.microsoft.bot.builder.Storage;
import com.microsoft.bot.builder.TelemetryLoggerMiddleware;
import com.microsoft.bot.builder.UserState;
import com.microsoft.bot.integration.CloudAdapterWithErrorHandler;
import com.microsoft.bot.integration.BotFrameworkHttpAdapter;
import com.microsoft.bot.integration.Configuration;
import com.microsoft.bot.integration.spring.BotController;
Expand Down Expand Up @@ -91,7 +92,7 @@ public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configur
TelemetryInitializerMiddleware telemetryInitializerMiddleware =
new TelemetryInitializerMiddleware(telemetryLoggerMiddleware, false);

AdapterWithErrorHandler adapter = new AdapterWithErrorHandler(
CloudAdapterWithErrorHandler adapter = new CloudAdapterWithErrorHandler(
configuration,
telemetryInitializerMiddleware,
botTelemetryClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package com.microsoft.bot.sample.facebookevents;

import com.microsoft.bot.builder.Bot;
import com.microsoft.bot.integration.AdapterWithErrorHandler;
import com.microsoft.bot.integration.CloudAdapterWithErrorHandler;
import com.microsoft.bot.integration.BotFrameworkHttpAdapter;
import com.microsoft.bot.integration.Configuration;
import com.microsoft.bot.integration.spring.BotController;
Expand Down Expand Up @@ -61,6 +61,6 @@ public Bot getBot() {
*/
@Override
public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configuration) {
return new AdapterWithErrorHandler(configuration);
return new CloudAdapterWithErrorHandler(configuration);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import com.microsoft.bot.builder.Bot;
import com.microsoft.bot.builder.ConversationState;
import com.microsoft.bot.builder.UserState;
import com.microsoft.bot.integration.AdapterWithErrorHandler;
import com.microsoft.bot.integration.CloudAdapterWithErrorHandler;
import com.microsoft.bot.integration.BotFrameworkHttpAdapter;
import com.microsoft.bot.integration.Configuration;
import com.microsoft.bot.integration.spring.BotController;
Expand Down Expand Up @@ -65,6 +65,6 @@ public Bot getBot(
*/
@Override
public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configuration) {
return new AdapterWithErrorHandler(configuration);
return new CloudAdapterWithErrorHandler(configuration);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import com.microsoft.bot.builder.Bot;
import com.microsoft.bot.builder.Storage;
import com.microsoft.bot.integration.AdapterWithErrorHandler;
import com.microsoft.bot.integration.CloudAdapterWithErrorHandler;
import com.microsoft.bot.integration.BotFrameworkHttpAdapter;
import com.microsoft.bot.integration.Configuration;
import com.microsoft.bot.integration.spring.BotController;
Expand Down Expand Up @@ -67,6 +67,6 @@ public Bot getBot(Storage storage) {
*/
@Override
public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configuration) {
return new AdapterWithErrorHandler(configuration);
return new CloudAdapterWithErrorHandler(configuration);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package com.microsoft.bot.sample.scaleout;

import com.microsoft.bot.builder.Bot;
import com.microsoft.bot.integration.AdapterWithErrorHandler;
import com.microsoft.bot.integration.CloudAdapterWithErrorHandler;
import com.microsoft.bot.integration.BotFrameworkHttpAdapter;
import com.microsoft.bot.integration.Configuration;
import com.microsoft.bot.integration.spring.BotController;
Expand Down Expand Up @@ -76,6 +76,6 @@ public Bot getBot() {
*/
@Override
public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configuration) {
return new AdapterWithErrorHandler(configuration);
return new CloudAdapterWithErrorHandler(configuration);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import com.microsoft.bot.builder.ConversationState;
import com.microsoft.bot.builder.UserState;
import com.microsoft.bot.dialogs.Dialog;
import com.microsoft.bot.integration.AdapterWithErrorHandler;
import com.microsoft.bot.integration.CloudAdapterWithErrorHandler;
import com.microsoft.bot.integration.BotFrameworkHttpAdapter;
import com.microsoft.bot.integration.Configuration;
import com.microsoft.bot.integration.spring.BotController;
Expand Down Expand Up @@ -81,6 +81,6 @@ public Dialog getRootDialog(UserState userState) {
*/
@Override
public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configuration) {
return new AdapterWithErrorHandler(configuration);
return new CloudAdapterWithErrorHandler(configuration);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import com.microsoft.bot.builder.Bot;
import com.microsoft.bot.builder.ConversationState;
import com.microsoft.bot.builder.UserState;
import com.microsoft.bot.integration.AdapterWithErrorHandler;
import com.microsoft.bot.integration.CloudAdapterWithErrorHandler;
import com.microsoft.bot.integration.BotFrameworkHttpAdapter;
import com.microsoft.bot.integration.Configuration;
import com.microsoft.bot.integration.spring.BotController;
Expand Down Expand Up @@ -64,6 +64,6 @@ public Bot getBot(
*/
@Override
public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configuration) {
return new AdapterWithErrorHandler(configuration);
return new CloudAdapterWithErrorHandler(configuration);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import com.microsoft.bot.builder.Bot;
import com.microsoft.bot.builder.ConversationState;
import com.microsoft.bot.builder.UserState;
import com.microsoft.bot.integration.AdapterWithErrorHandler;
import com.microsoft.bot.integration.CloudAdapterWithErrorHandler;
import com.microsoft.bot.integration.BotFrameworkHttpAdapter;
import com.microsoft.bot.integration.Configuration;
import com.microsoft.bot.integration.spring.BotController;
Expand Down Expand Up @@ -67,7 +67,7 @@ public Bot getBot(
*/
@Override
public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configuration) {
return new AdapterWithErrorHandler(configuration);
return new CloudAdapterWithErrorHandler(configuration);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import com.microsoft.bot.builder.ConversationState;
import com.microsoft.bot.builder.UserState;
import com.microsoft.bot.dialogs.Dialog;
import com.microsoft.bot.integration.AdapterWithErrorHandler;
import com.microsoft.bot.integration.CloudAdapterWithErrorHandler;
import com.microsoft.bot.integration.BotFrameworkHttpAdapter;
import com.microsoft.bot.integration.Configuration;
import com.microsoft.bot.integration.spring.BotController;
Expand Down Expand Up @@ -81,6 +81,6 @@ public Dialog getRootDialog(Configuration configuration) {
*/
@Override
public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configuration) {
return new AdapterWithErrorHandler(configuration);
return new CloudAdapterWithErrorHandler(configuration);
}
}
Loading