Package io.micronaut.http.hateoas
Class DefaultLink
java.lang.Object
io.micronaut.http.hateoas.DefaultLink
- All Implemented Interfaces:
Link,Link.Builder
Default implementation of
Link.- Since:
- 1.1
- Author:
- Graeme Rocher
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.http.hateoas.Link
Link.Builder -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultLink
- Parameters:
uri- The URI
-
-
Method Details
-
getHref
-
templated
- Specified by:
templatedin interfaceLink.Builder- Parameters:
templated- Whether the URI is templated- Returns:
- The builder
- See Also:
-
profile
- Specified by:
profilein interfaceLink.Builder- Parameters:
profile- The profile URI- Returns:
- The builder
- See Also:
-
deprecation
- Specified by:
deprecationin interfaceLink.Builder- Parameters:
deprecation- The deprecation URI- Returns:
- The builder
- See Also:
-
profile
- Specified by:
profilein interfaceLink.Builder- Parameters:
profileURI- The profile URI- Returns:
- The builder
- See Also:
-
deprecation
- Specified by:
deprecationin interfaceLink.Builder- Parameters:
deprecationURI- The deprecation URI- Returns:
- The builder
- See Also:
-
title
- Specified by:
titlein interfaceLink.Builder- Parameters:
title- The title of the link- Returns:
- The builder
- See Also:
-
name
- Specified by:
namein interfaceLink.Builder- Parameters:
name- The name of the link- Returns:
- The builder
- See Also:
-
hreflang
- Specified by:
hreflangin interfaceLink.Builder- Parameters:
hreflang- The language of the link- Returns:
- The builder
- See Also:
-
type
- Specified by:
typein interfaceLink.Builder- Parameters:
mediaType- The type of the URI- Returns:
- The builder
- See Also:
-
isTemplated
public boolean isTemplated()- Specified by:
isTemplatedin interfaceLink- Returns:
- Whether the URI is templated
-
getType
-
getDeprecation
- Specified by:
getDeprecationin interfaceLink- Returns:
- The deprecation URI
-
getProfile
- Specified by:
getProfilein interfaceLink- Returns:
- The profile URI
-
getName
-
getTitle
-
getHreflang
- Specified by:
getHreflangin interfaceLink- Returns:
- The language of the link
-
build
Description copied from interface:Link.BuilderBuild the link.- Specified by:
buildin interfaceLink.Builder- Returns:
- The
Link
-