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 BasicLinkBuildercreateNewInstance(UriComponents components, List<Affordance> affordances) Creates a new instance of the sub-class.protected BasicLinkBuildergetThis()Returns the current concrete instance.static BasicLinkBuilderCreates a newBasicLinkBuilderto link to the current servlet mapping.Methods inherited from class org.springframework.hateoas.server.core.LinkBuilderSupport
addAffordances, getAffordances, slash, slash, toString, toUri, withRel, withSelfRelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.hateoas.server.LinkBuilder
withRel
-
Method Details
-
linkToCurrentMapping
Creates a newBasicLinkBuilderto link to the current servlet mapping.- Returns:
-
createNewInstance
protected BasicLinkBuilder createNewInstance(UriComponents components, List<Affordance> affordances) Description copied from class:LinkBuilderSupportCreates a new instance of the sub-class.- Specified by:
createNewInstancein classLinkBuilderSupport<BasicLinkBuilder>
-
getThis
Description copied from class:LinkBuilderSupportReturns the current concrete instance.- Specified by:
getThisin classLinkBuilderSupport<BasicLinkBuilder>- Returns:
-