Commit f429c3b4 authored by Andre Freyssinet's avatar Andre Freyssinet

Fit with old URI style, should be removed with JORAM-345.

parent 1a95a648
......@@ -72,7 +72,8 @@ public class RestConsumer {
response = client.target(uriCreateCons)
.request()
.accept(MediaType.TEXT_PLAIN).post(Entity.entity(null, MediaType.APPLICATION_FORM_URLENCODED));
.accept(MediaType.TEXT_PLAIN).post(null);
// .accept(MediaType.TEXT_PLAIN).post(Entity.entity(null, MediaType.APPLICATION_FORM_URLENCODED));
System.out.println("Create consumer -> " + response.getStatus());
if (debug) print(response.getLinks());
......
......@@ -73,7 +73,9 @@ public class RestProducer {
// Create the producer
response = client.target(uriCreateProd)
.request()
.accept(MediaType.TEXT_PLAIN).post(Entity.entity(null, MediaType.APPLICATION_FORM_URLENCODED));
.accept(MediaType.TEXT_PLAIN).post(null);
// .accept(MediaType.TEXT_PLAIN, MediaType.APPLICATION_JSON).post(Entity.entity(null, MediaType.APPLICATION_FORM_URLENCODED));
System.out.println("Response -> " + response);
uriCloseProd = response.getLink("close-context").getUri();
uriSendNextMsg = response.getLink("send-next-message").getUri();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment