Class TemplateVariableAwareLinkBuilderSupport<T extends TemplateVariableAwareLinkBuilderSupport<T>>
java.lang.Object
org.springframework.hateoas.server.core.LinkBuilderSupport<T>
org.springframework.hateoas.server.core.TemplateVariableAwareLinkBuilderSupport<T>
- All Implemented Interfaces:
LinkBuilder
- Direct Known Subclasses:
WebFluxLinkBuilder
,WebMvcLinkBuilder
public abstract class TemplateVariableAwareLinkBuilderSupport<T extends TemplateVariableAwareLinkBuilderSupport<T>>
extends LinkBuilderSupport<T>
A
LinkBuilderSupport
extension that can keep a list of TemplateVariables
around.- Author:
- Oliver Gierke
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TemplateVariableAwareLinkBuilderSupport
(UriComponents components, TemplateVariables variables, List<Affordance> affordances) -
Method Summary
Modifier and TypeMethodDescriptionprotected final T
createNewInstance
(UriComponents components, List<Affordance> affordances) Creates a new instance of the sub-class.protected abstract T
createNewInstance
(UriComponents components, List<Affordance> affordances, TemplateVariables variables) toString()
Methods inherited from class org.springframework.hateoas.server.core.LinkBuilderSupport
addAffordances, getAffordances, getThis, slash, slash, 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
-
Constructor Details
-
TemplateVariableAwareLinkBuilderSupport
protected TemplateVariableAwareLinkBuilderSupport(UriComponents components, TemplateVariables variables, List<Affordance> affordances)
-
-
Method Details
-
createNewInstance
Description copied from class:LinkBuilderSupport
Creates a new instance of the sub-class.- Specified by:
createNewInstance
in classLinkBuilderSupport<T extends TemplateVariableAwareLinkBuilderSupport<T>>
-
createNewInstance
protected abstract T createNewInstance(UriComponents components, List<Affordance> affordances, TemplateVariables variables) -
toString
- Overrides:
toString
in classLinkBuilderSupport<T extends TemplateVariableAwareLinkBuilderSupport<T>>
-