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
-
Method Summary
-
Constructor Details
-
DefaultLink
- Parameters:
uri
- The URI
-
-
Method Details
-
getHref
-
templated
- Specified by:
templated
in interfaceLink.Builder
- Parameters:
templated
- Whether the URI is templated- Returns:
- The builder
- See Also:
-
profile
- Specified by:
profile
in interfaceLink.Builder
- Parameters:
profile
- The profile URI- Returns:
- The builder
- See Also:
-
deprecation
- Specified by:
deprecation
in interfaceLink.Builder
- Parameters:
deprecation
- The deprecation URI- Returns:
- The builder
- See Also:
-
profile
- Specified by:
profile
in interfaceLink.Builder
- Parameters:
profileURI
- The profile URI- Returns:
- The builder
- See Also:
-
deprecation
- Specified by:
deprecation
in interfaceLink.Builder
- Parameters:
deprecationURI
- The deprecation URI- Returns:
- The builder
- See Also:
-
title
- Specified by:
title
in interfaceLink.Builder
- Parameters:
title
- The title of the link- Returns:
- The builder
- See Also:
-
name
- Specified by:
name
in interfaceLink.Builder
- Parameters:
name
- The name of the link- Returns:
- The builder
- See Also:
-
hreflang
- Specified by:
hreflang
in interfaceLink.Builder
- Parameters:
hreflang
- The language of the link- Returns:
- The builder
- See Also:
-
type
- Specified by:
type
in interfaceLink.Builder
- Parameters:
mediaType
- The type of the URI- Returns:
- The builder
- See Also:
-
isTemplated
public boolean isTemplated()- Specified by:
isTemplated
in interfaceLink
- Returns:
- Whether the URI is templated
-
getType
-
getDeprecation
- Specified by:
getDeprecation
in interfaceLink
- Returns:
- The deprecation URI
-
getProfile
- Specified by:
getProfile
in interfaceLink
- Returns:
- The profile URI
-
getName
-
getTitle
-
getHreflang
- Specified by:
getHreflang
in interfaceLink
- Returns:
- The language of the link
-
build
Description copied from interface:Link.Builder
Build the link.- Specified by:
build
in interfaceLink.Builder
- Returns:
- The
Link
-