Package io.spring.initializr.metadata
Class Link
java.lang.Object
io.spring.initializr.metadata.Link
Metadata for a link. Each link has a "relation" that potentially attaches a strong
semantic to the nature of the link. The URI of the link itself can be templated by
including variables in the form `{variableName}`.
An actual URI can be generated using expand, providing a mapping for
those variables.
- Author:
- Dave Syer, Stephane Nicoll
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Linkstatic Linkstatic LinkExpand the link using the specified parameters.getHref()getRel()booleanvoidresolve()voidsetDescription(String description) voidvoidvoidsetTemplated(boolean templated)
-
Constructor Details
-
Link
public Link()
-
-
Method Details
-
getRel
-
setRel
-
isTemplated
public boolean isTemplated() -
setTemplated
public void setTemplated(boolean templated) -
getDescription
-
setDescription
-
getHref
-
getTemplateVariables
-
setHref
-
resolve
public void resolve() -
expand
Expand the link using the specified parameters.- Parameters:
parameters- the parameters value- Returns:
- an URI where all variables have been expanded
-
create
-
create
-
create
-