@Introspected public class DefaultLink extends Object implements Link, Link.Builder
Link
.Link.Builder
Modifier | Constructor and Description |
---|---|
protected |
DefaultLink(String uri) |
Modifier and Type | Method and Description |
---|---|
Link |
build()
Build the link.
|
Link.Builder |
deprecation(String deprecationURI) |
Link.Builder |
deprecation(URI deprecation) |
Optional<String> |
getDeprecation() |
String |
getHref() |
Optional<String> |
getHreflang() |
Optional<String> |
getName() |
Optional<String> |
getProfile() |
Optional<String> |
getTitle() |
Optional<MediaType> |
getType() |
Link.Builder |
hreflang(String hreflang) |
boolean |
isTemplated() |
Link.Builder |
name(String name) |
Link.Builder |
profile(String profileURI) |
Link.Builder |
profile(URI profile) |
Link.Builder |
templated(boolean templated) |
Link.Builder |
title(String title) |
Link.Builder |
type(MediaType mediaType) |
protected DefaultLink(String uri)
uri
- The URIpublic String getHref()
public Link.Builder templated(boolean templated)
templated
in interface Link.Builder
templated
- Whether the URI is templatedLink.isTemplated()
public Link.Builder profile(URI profile)
profile
in interface Link.Builder
profile
- The profile URILink.getProfile()
public Link.Builder deprecation(URI deprecation)
deprecation
in interface Link.Builder
deprecation
- The deprecation URILink.getDeprecation()
public Link.Builder profile(@Nullable String profileURI)
profile
in interface Link.Builder
profileURI
- The profile URILink.getProfile()
public Link.Builder deprecation(@Nullable String deprecationURI)
deprecation
in interface Link.Builder
deprecationURI
- The deprecation URILink.getDeprecation()
public Link.Builder title(String title)
title
in interface Link.Builder
title
- The title of the linkLink.getTitle()
public Link.Builder name(String name)
name
in interface Link.Builder
name
- The name of the linkLink.getName()
public Link.Builder hreflang(String hreflang)
hreflang
in interface Link.Builder
hreflang
- The language of the linkLink.getHreflang()
public Link.Builder type(MediaType mediaType)
type
in interface Link.Builder
mediaType
- The type of the URILink.getType()
public boolean isTemplated()
isTemplated
in interface Link
public Optional<String> getDeprecation()
getDeprecation
in interface Link
public Optional<String> getProfile()
getProfile
in interface Link
public Optional<String> getHreflang()
getHreflang
in interface Link
public Link build()
Link.Builder
build
in interface Link.Builder
Link