Package org.dspace.app.rest.link
Class RootHalLinkFactory
- java.lang.Object
-
- org.dspace.app.rest.link.HalLinkFactory<RootResource,RootRestResourceController>
-
- org.dspace.app.rest.link.RootHalLinkFactory
-
@Component public class RootHalLinkFactory extends HalLinkFactory<RootResource,RootRestResourceController>
This class' purpose is to add the links to the root REST endpoint to the next endpoints.
-
-
Constructor Summary
Constructors Constructor Description RootHalLinkFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddLinks(RootResource halResource, org.springframework.data.domain.Pageable page, LinkedList<org.springframework.hateoas.Link> list)protected Class<RootRestResourceController>getControllerClass()protected Class<RootResource>getResourceClass()-
Methods inherited from class org.dspace.app.rest.link.HalLinkFactory
buildLink, buildLink, getLinksFor, getMethodOn, getMethodOn, supports, uriBuilder
-
-
-
-
Method Detail
-
addLinks
protected void addLinks(RootResource halResource, org.springframework.data.domain.Pageable page, LinkedList<org.springframework.hateoas.Link> list) throws Exception
- Specified by:
addLinksin classHalLinkFactory<RootResource,RootRestResourceController>- Throws:
Exception
-
getControllerClass
protected Class<RootRestResourceController> getControllerClass()
- Specified by:
getControllerClassin classHalLinkFactory<RootResource,RootRestResourceController>
-
getResourceClass
protected Class<RootResource> getResourceClass()
- Specified by:
getResourceClassin classHalLinkFactory<RootResource,RootRestResourceController>
-
-