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
ConstructorsModifierConstructorDescriptionprotectedTemplateVariableAwareLinkBuilderSupport(UriComponents components, TemplateVariables variables, List<Affordance> affordances) -
Method Summary
Modifier and TypeMethodDescriptionprotected final TcreateNewInstance(UriComponents components, List<Affordance> affordances) Creates a new instance of the sub-class.protected abstract TcreateNewInstance(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, 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
-
Constructor Details
-
TemplateVariableAwareLinkBuilderSupport
protected TemplateVariableAwareLinkBuilderSupport(UriComponents components, TemplateVariables variables, List<Affordance> affordances)
-
-
Method Details
-
createNewInstance
Description copied from class:LinkBuilderSupportCreates a new instance of the sub-class.- Specified by:
createNewInstancein classLinkBuilderSupport<T extends TemplateVariableAwareLinkBuilderSupport<T>>
-
createNewInstance
protected abstract T createNewInstance(UriComponents components, List<Affordance> affordances, TemplateVariables variables) -
toString
- Overrides:
toStringin classLinkBuilderSupport<T extends TemplateVariableAwareLinkBuilderSupport<T>>
-