small fixes
This commit is contained in:
parent
3b205d80a5
commit
332f035622
|
@ -25,9 +25,9 @@ import java.sql.Timestamp;
|
||||||
public class ExternalAuctionStartedEventListenerMqttAdapter extends AuctionEventMqttListener{
|
public class ExternalAuctionStartedEventListenerMqttAdapter extends AuctionEventMqttListener{
|
||||||
private static final Logger LOGGER = LogManager.getLogger(ExternalAuctionStartedEventListenerMqttAdapter.class);
|
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
|
@Override
|
||||||
public boolean handleEvent(MqttMessage message){
|
public boolean handleEvent(MqttMessage message){
|
||||||
|
|
|
@ -61,6 +61,7 @@ public class AuctionWonEventHttpAdapter implements AuctionWonEventPort {
|
||||||
String body = TaskJsonRepresentation.serialize(task);
|
String body = TaskJsonRepresentation.serialize(task);
|
||||||
LOGGER.info(body);
|
LOGGER.info(body);
|
||||||
var postURI = URI.create(bidderAuctionHouseUri + "/taskwinner");
|
var postURI = URI.create(bidderAuctionHouseUri + "/taskwinner");
|
||||||
|
LOGGER.info(postURI);
|
||||||
HttpRequest postRequest = HttpRequest.newBuilder()
|
HttpRequest postRequest = HttpRequest.newBuilder()
|
||||||
.uri(postURI)
|
.uri(postURI)
|
||||||
.header("Content-Type", TaskJsonRepresentation.MEDIA_TYPE)
|
.header("Content-Type", TaskJsonRepresentation.MEDIA_TYPE)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user