Package org.springframework.hateoas

Examples of org.springframework.hateoas.UriTemplate.expand()


      }

      HttpEntity<?> request = prepareRequest(headers);
      UriTemplate uriTemplate = new UriTemplate(uri);

      ResponseEntity<String> responseEntity = operations.exchange(uriTemplate.expand(templateParameters), GET, request,
          String.class);
      MediaType contentType = responseEntity.getHeaders().getContentType();
      String responseBody = responseEntity.getBody();

      Rel rel = Rels.getRelFor(rels.next(), discoverers);
View Full Code Here


  }

  @Override
  public List<String> completions(CompletionKind kind, String start, int lod) {
    UriTemplate template = resources.get(String.format("completions/%s", kind));
    URI expanded = template.expand(start, lod);
    return Arrays.asList(restTemplate.getForObject(expanded, String[].class));
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.