@CompileStatic @EqualsAndHashCode(includes: [rel, href]) class Link extends Object implements Serializable
Represents a Link in a RESTful resource. See http://tools.ietf.org/html/draft-kelly-json-hal-05#section-5
| Type | Name and description |
|---|---|
String |
contentTypeThe content type of the linked resource |
boolean |
deprecatedWhether the link is deprecated |
String |
hrefThe link's href |
Locale |
hreflangThe language of the linked resource |
String |
relThe link relationship |
boolean |
templatedWhether the link is a URI template |
String |
titleThe Human readable title of the resource |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static Link |
createLink(Map<String, Object> arguments)Creates a link for the given arguments |
The content type of the linked resource
Whether the link is deprecated
The link's href
The language of the linked resource
The link relationship
Whether the link is a URI template
The Human readable title of the resource