Class BasicLinkBuilder
java.lang.Object
org.springframework.hateoas.server.core.LinkBuilderSupport<BasicLinkBuilder>
org.springframework.hateoas.server.mvc.BasicLinkBuilder
- All Implemented Interfaces:
LinkBuilder
Simples
LinkBuilder
implementation possible. Exposes a link to the current servlet mapping only.- Author:
- Oliver Gierke
-
Method Summary
Modifier and TypeMethodDescriptionprotected BasicLinkBuilder
createNewInstance
(UriComponents components, List<Affordance> affordances) Creates a new instance of the sub-class.protected BasicLinkBuilder
getThis()
Returns the current concrete instance.static BasicLinkBuilder
Creates a newBasicLinkBuilder
to link to the current servlet mapping.Methods inherited from class org.springframework.hateoas.server.core.LinkBuilderSupport
addAffordances, getAffordances, slash, slash, toString, toUri, withRel, withSelfRel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.hateoas.server.LinkBuilder
withRel
-
Method Details
-
linkToCurrentMapping
Creates a newBasicLinkBuilder
to link to the current servlet mapping.- Returns:
-
createNewInstance
protected BasicLinkBuilder createNewInstance(UriComponents components, List<Affordance> affordances) Description copied from class:LinkBuilderSupport
Creates a new instance of the sub-class.- Specified by:
createNewInstance
in classLinkBuilderSupport<BasicLinkBuilder>
-
getThis
Description copied from class:LinkBuilderSupport
Returns the current concrete instance.- Specified by:
getThis
in classLinkBuilderSupport<BasicLinkBuilder>
- Returns:
-