|
|
|
@ -77,8 +77,10 @@ public class MessagingConnector {
|
|
|
|
|
try {
|
|
|
|
|
ObjectMapper objectMapper = new ObjectMapper();
|
|
|
|
|
Map<String, String> body = prepareRequestBody(messageSendRequest, objectMapper);
|
|
|
|
|
System.out.println("body : " + body);
|
|
|
|
|
|
|
|
|
|
String jsonBody = objectMapper.writeValueAsString(body);
|
|
|
|
|
System.out.println("jsonbody : " + jsonBody);
|
|
|
|
|
|
|
|
|
|
HttpRequest request = HttpRequest.newBuilder()
|
|
|
|
|
.uri(URI.create(url))
|
|
|
|
@ -88,6 +90,9 @@ public class MessagingConnector {
|
|
|
|
|
.build();
|
|
|
|
|
|
|
|
|
|
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());
|
|
|
|
|
System.out.println("responseCode : " + response.statusCode());
|
|
|
|
|
System.out.println("responseBody : " + response.body());
|
|
|
|
|
System.out.println("responseFull : " + response);
|
|
|
|
|
|
|
|
|
|
if (response.statusCode() == 200) {
|
|
|
|
|
sejongMessageSendResponse = objectMapper.readValue(response.body(), SejongMessageSendResponse.class);
|
|
|
|
|