From d4159fb36a8e4c7f86b15de449ad228e48eea996 Mon Sep 17 00:00:00 2001 From: Jason Smith Date: Wed, 4 Jan 2017 17:19:21 +0100 Subject: [PATCH] moved from modifified RestService to proxy to get get requests working for tracing --- .../java/works/weave/socks/orders/services/AsyncGetService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/works/weave/socks/orders/services/AsyncGetService.java b/src/main/java/works/weave/socks/orders/services/AsyncGetService.java index dc49cc1..901c621 100644 --- a/src/main/java/works/weave/socks/orders/services/AsyncGetService.java +++ b/src/main/java/works/weave/socks/orders/services/AsyncGetService.java @@ -56,7 +56,7 @@ public Future> getResource(URI url, TypeReferences.ResourceType< InterruptedException, IOException { RequestEntity request = RequestEntity.get(url).accept(HAL_JSON).build(); LOG.debug("Requesting: " + request.toString()); - Resource body = halTemplate.exchange(request, type).getBody(); + Resource body = restProxyTemplate.getRestTemplate().exchange(request, type).getBody(); LOG.debug("Received: " + body.toString()); return new AsyncResult<>(body); }