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