ClientConfig configuration = new ClientConfig();
configuration.register(JacksonFeature.class);
httpClient = ClientBuilder.newClient(configuration);
- if (!serverAddress.startsWith("http://")) {
+ if (!serverAddress.startsWith("http://") && !serverAddress.startsWith("https://")) {
serverAddress = "http://" + serverAddress;
}
base = httpClient.target(serverAddress);
}
}
+ public String getUuid() {
+ return uuid;
+ }
+
private void register(String id) throws AuditLoggingException {
try {
Response response = base.path("register").request(MediaType.APPLICATION_JSON_TYPE).post(Entity.json(Collections.singletonMap("id", id)));