From 332f035622ec0d445eec1193cc06738f2e2be50f Mon Sep 17 00:00:00 2001 From: reynisson Date: Sat, 20 Nov 2021 22:53:52 +0100 Subject: [PATCH] small fixes --- .../mqtt/ExternalAuctionStartedEventListenerMqttAdapter.java | 4 ++-- .../adapter/out/web/AuctionWonEventHttpAdapter.java | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tapas-auction-house/src/main/java/ch/unisg/tapas/auctionhouse/adapter/in/messaging/mqtt/ExternalAuctionStartedEventListenerMqttAdapter.java b/tapas-auction-house/src/main/java/ch/unisg/tapas/auctionhouse/adapter/in/messaging/mqtt/ExternalAuctionStartedEventListenerMqttAdapter.java index c47acad..746d0ba 100644 --- a/tapas-auction-house/src/main/java/ch/unisg/tapas/auctionhouse/adapter/in/messaging/mqtt/ExternalAuctionStartedEventListenerMqttAdapter.java +++ b/tapas-auction-house/src/main/java/ch/unisg/tapas/auctionhouse/adapter/in/messaging/mqtt/ExternalAuctionStartedEventListenerMqttAdapter.java @@ -25,9 +25,9 @@ import java.sql.Timestamp; public class ExternalAuctionStartedEventListenerMqttAdapter extends AuctionEventMqttListener{ private static final Logger LOGGER = LogManager.getLogger(ExternalAuctionStartedEventListenerMqttAdapter.class); - String auctionHouseURI = "http://tapas-auction-house.86-119-35-40.nip.io/"; + String auctionHouseURI = "https://tapas-auction-house.86-119-35-40.nip.io/"; - String taskListURI = "http://tapas-tasks.86-119-35-40.nip.io"; + String taskListURI = "https://tapas-tasks.86-119-35-40.nip.io"; @Override public boolean handleEvent(MqttMessage message){ diff --git a/tapas-auction-house/src/main/java/ch/unisg/tapas/auctionhouse/adapter/out/web/AuctionWonEventHttpAdapter.java b/tapas-auction-house/src/main/java/ch/unisg/tapas/auctionhouse/adapter/out/web/AuctionWonEventHttpAdapter.java index 2178fb4..9dc1508 100644 --- a/tapas-auction-house/src/main/java/ch/unisg/tapas/auctionhouse/adapter/out/web/AuctionWonEventHttpAdapter.java +++ b/tapas-auction-house/src/main/java/ch/unisg/tapas/auctionhouse/adapter/out/web/AuctionWonEventHttpAdapter.java @@ -61,6 +61,7 @@ public class AuctionWonEventHttpAdapter implements AuctionWonEventPort { String body = TaskJsonRepresentation.serialize(task); LOGGER.info(body); var postURI = URI.create(bidderAuctionHouseUri + "/taskwinner"); + LOGGER.info(postURI); HttpRequest postRequest = HttpRequest.newBuilder() .uri(postURI) .header("Content-Type", TaskJsonRepresentation.MEDIA_TYPE)