Example usage for Java org.springframework.hateoas Link fields, constructors, methods, implement or subclass
The text is from its open source code.
String | ATOM_NAMESPACE |
LinkRelation | REL_SELF |
LinkRelation | REL_FIRST |
LinkRelation | REL_PREVIOUS |
LinkRelation | REL_NEXT |
LinkRelation | REL_LAST |
Link(String href, String rel) Creates a new Link to the given URI with the given rel. | |
Link(String href, LinkRelation rel) Creates a new Link to the given URI with the given rel. | |
Link(UriTemplate template, String rel) Creates a new Link from the given UriTemplate and rel. | |
Link(UriTemplate template, LinkRelation rel) Creates a new Link from the given UriTemplate and rel. | |
Link(String href) Creates a new link to the given URI with the self rel. | |
Link(UriTemplate template, LinkRelation rel, List Creates a new Link from the given UriTemplate , link relation and affordances. |
Link | expand(Object... arguments) Turns the current template into a Link by expanding it using the given parameters. |
Link | expand(Map Turns the current template into a Link by expanding it using the given parameters. |
List | getVariableNames() Returns the variable names contained in the template. |
List | getVariables() Returns all TemplateVariables contained in the Link . |
boolean | isTemplated() Returns whether or not the link is templated. |
String | toString() |
Link | valueOf(String element) Factory method to easily create Link instances from RFC-5988 compatible String representations of a link. |
Link | withSelfRel() Returns a Link pointing to the same URI but with the self relation. |