Examples of withRel()


Examples of org.springframework.hateoas.mvc.ControllerLinkBuilder.withRel()

      Object content = ((Resource<?>) resource).getContent();
      if (content instanceof Iterable) {

        for (Resource<?> res : (Iterable<Resource<?>>) content) {
          links.add(linkBuilder.withRel(propertyMapping.getRel()));
        }

      } else if (content instanceof Map) {

        Map<Object, Resource<?>> map = (Map<Object, Resource<?>>) content;
View Full Code Here

Examples of org.springframework.hateoas.mvc.ControllerLinkBuilder.withRel()

          links.add(l);
        }
      }

    } else {
      links.add(linkBuilder.withRel(propertyMapping.getRel()));
    }

    return ControllerUtils.toResponseEntity(HttpStatus.OK, null, new Resource<Object>(EMPTY_RESOURCE_LIST, links));
  }
View Full Code Here

Examples of org.springframework.hateoas.mvc.ControllerLinkBuilder.withRel()

      Object content = ((Resource<?>) resource).getContent();
      if (content instanceof Iterable) {

        for (Resource<?> res : (Iterable<Resource<?>>) content) {
          links.add(linkBuilder.withRel(propertyMapping.getRel()));
        }

      } else if (content instanceof Map) {

        Map<Object, Resource<?>> map = (Map<Object, Resource<?>>) content;
View Full Code Here

Examples of org.springframework.hateoas.mvc.ControllerLinkBuilder.withRel()

          links.add(l);
        }
      }

    } else {
      links.add(linkBuilder.withRel(propertyMapping.getRel()));
    }

    return ControllerUtils.toResponseEntity(HttpStatus.OK, null, new Resource<Object>(EMPTY_RESOURCE_LIST, links));
  }
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.