Package io.micronaut.http.hateoas
Interface Link
- All Known Implementing Classes:
DefaultLink
public interface Link
Interface for a hateoas link.
See this
- Since:
- 1.1
- Author:
- Graeme Rocher
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final CharSequence
About link.static final CharSequence
Help link.static final CharSequence
Href link.static final CharSequence
Self link. -
Method Summary
Modifier and TypeMethodDescriptionstatic Link.Builder
Create a link from the given URI.static Link.Builder
Create a link from the given URI.getHref()
getName()
getTitle()
getType()
default boolean
static Link
Create a link from the given URI.static Link
Create a link from the given URI.
-
Field Details
-
HELP
Help link. -
SELF
Self link. -
ABOUT
About link. -
HREF
Href link.
-
-
Method Details
-
getHref
String getHref()- Returns:
- The URI to template to
-
isTemplated
default boolean isTemplated()- Returns:
- Whether the URI is templated
-
getType
- Returns:
- The type of the URI
-
getDeprecation
- Returns:
- The deprecation URI
-
getProfile
- Returns:
- The profile URI
-
getName
- Returns:
- The name of the link
-
getTitle
- Returns:
- The title of the link
-
getHreflang
- Returns:
- The language of the link
-
of
Create a link from the given URI.- Parameters:
uri
- The URI- Returns:
- The link
-
of
Create a link from the given URI.- Parameters:
uri
- The URI- Returns:
- The link
-
build
Create a link from the given URI.- Parameters:
uri
- The URI- Returns:
- The link
-
build
Create a link from the given URI.- Parameters:
uri
- The URI- Returns:
- The link
-