Class HalLinkFactory<RESOURCE,​CONTROLLER>

    • Constructor Detail

      • HalLinkFactory

        public HalLinkFactory()
    • Method Detail

      • supports

        public boolean supports​(Class clazz)
      • getLinksFor

        public List<org.springframework.hateoas.Link> getLinksFor​(HALResource halResource,
                                                                  org.springframework.data.domain.Pageable pageable)
                                                           throws Exception
        Throws:
        Exception
      • buildLink

        protected <T> org.springframework.hateoas.Link buildLink​(String rel,
                                                                 T data)
      • uriBuilder

        protected <T> org.springframework.web.util.UriComponentsBuilder uriBuilder​(T data)
      • buildLink

        protected org.springframework.hateoas.Link buildLink​(String rel,
                                                             String href)
      • getMethodOn

        protected <C> C getMethodOn​(Class<C> clazz)
      • addLinks

        protected abstract void addLinks​(RESOURCE halResource,
                                         org.springframework.data.domain.Pageable pageable,
                                         LinkedList<org.springframework.hateoas.Link> list)
                                  throws Exception
        Throws:
        Exception
      • getControllerClass

        protected abstract Class<CONTROLLER> getControllerClass()
      • getResourceClass

        protected abstract Class<RESOURCE> getResourceClass()