Package org.springframework.hateoas.client.Rels

Examples of org.springframework.hateoas.client.Rels.Rel


      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);
      Link link = rel.findInResponse(responseBody, contentType);

      if (link == null) {
        throw new IllegalStateException(String.format("Expected to find link with rel '%s' in response %s!", rel,
            responseBody));
      }
View Full Code Here

TOP

Related Classes of org.springframework.hateoas.client.Rels.Rel

Copyright © 2018 www.massapicom. 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.