From ab02a783c97c1f3af4796b415683a6d39bf8434b Mon Sep 17 00:00:00 2001 From: CyB3RC0nN0R Date: Sun, 6 Oct 2019 10:41:32 +0200 Subject: [PATCH] Fixed formatting --- src/main/java/envoy/client/EnvoyClient.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/envoy/client/EnvoyClient.java b/src/main/java/envoy/client/EnvoyClient.java index 50d3bb9..c832ee0 100644 --- a/src/main/java/envoy/client/EnvoyClient.java +++ b/src/main/java/envoy/client/EnvoyClient.java @@ -39,7 +39,6 @@ public class EnvoyClient { } catch (IOException e) { e.printStackTrace(); } - } public EnvoyClient() { @@ -73,11 +72,12 @@ public class EnvoyClient { } // Send message - String url = String.format("%s:%s/envoy-server/rest/message/send", serverProps.getProperty("server"), + String url = String.format("%s:%s/envoy-server/rest/message/send", + serverProps.getProperty("server"), serverProps.getProperty("port")); - Client client = ClientBuilder.newClient(); - WebTarget target = client.target(url); - Response response = target.request().post(Entity.entity(message, "application/xml")); + Client client = ClientBuilder.newClient(); + WebTarget target = client.target(url); + Response response = target.request().post(Entity.entity(message, "application/xml")); System.out.println("Response code: " + response.getStatus()); response.close(); client.close(); @@ -93,8 +93,8 @@ public class EnvoyClient { * @return Prepared {@link Message} object */ public Message createMessage(String senderID, String recipientID, String textContent) { - ObjectFactory factory = new ObjectFactory(); - Message.MetaData metaData = factory.createMessageMetaData(); + ObjectFactory factory = new ObjectFactory(); + Message.MetaData metaData = factory.createMessageMetaData(); metaData.setSender(senderID); metaData.setRecipient(recipientID); metaData.setState(false);