public interface Link
Interface for a hateoas link.
See https://tools.ietf.org/html/draft-kelly-json-hal-08#section-5
| Modifier and Type | Interface and Description | 
|---|---|
static interface  | 
Link.Builder
Build for creating  
Link instances. | 
| Modifier and Type | Field and Description | 
|---|---|
static CharSequence | 
ABOUT
About link. 
 | 
static CharSequence | 
HELP
Help link. 
 | 
static CharSequence | 
HREF
Href link. 
 | 
static CharSequence | 
SELF
Self link. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static Link.Builder | 
build(String uri)
Create a link from the given URI. 
 | 
static Link.Builder | 
build(URI uri)
Create a link from the given URI. 
 | 
default Optional<String> | 
getDeprecation()  | 
String | 
getHref()  | 
default Optional<String> | 
getHreflang()  | 
default Optional<String> | 
getName()  | 
default Optional<String> | 
getProfile()  | 
default Optional<String> | 
getTitle()  | 
default Optional<MediaType> | 
getType()  | 
default boolean | 
isTemplated()  | 
static Link | 
of(String uri)
Create a link from the given URI. 
 | 
static Link | 
of(URI uri)
Create a link from the given URI. 
 | 
static final CharSequence HELP
static final CharSequence SELF
static final CharSequence ABOUT
static final CharSequence HREF
String getHref()
default boolean isTemplated()
static Link of(URI uri)
uri - The URIstatic Link of(String uri)
uri - The URIstatic Link.Builder build(URI uri)
uri - The URIstatic Link.Builder build(String uri)
uri - The URI