public class Link extends PropertyContainer
NL, properties, RESERVED_NAME| Modifier and Type | Method and Description |
|---|---|
Link |
clone() |
java.lang.String |
elementName() |
java.lang.String |
getHref() |
HttpMethod |
getMethod() |
java.lang.String |
getRelation() |
Link |
setHref(java.lang.String href)
Sets the URL of related HATEOAS link.
|
Link |
setMethod(HttpMethod method)
Sets the HTTP method required for the related call.
|
Link |
setRelation(java.lang.String relation)
Sets the link relation.
|
Link |
withHref(java.lang.String href)
Sets the URL of related HATEOAS link.
|
Link |
withMethod(HttpMethod method)
Sets the HTTP method required for the related call.
|
Link |
withRelation(java.lang.String relation)
Sets the link relation and return itself.
|
appendPropertiesTo, appendPropertiesTo, asDate, asDate, asInteger, asInteger, asLong, asLong, asString, asString, getProperties, getProperty, getPropertyMap, hasProperties, hasProperty, isVisible, jsonElementName, removeProperty, setPropertiesFrom, setProperty, toJson, toStringpublic Link()
Link object.public java.lang.String getRelation()
public Link setRelation(java.lang.String relation)
relation - the given link relation to set.public Link withRelation(java.lang.String relation)
relation - the given link relation to set.Link object.public HttpMethod getMethod()
public Link setMethod(HttpMethod method)
method - the HTTP method to set.public Link withMethod(HttpMethod method)
method - the HTTP method to set.Link object.public java.lang.String getHref()
public Link setHref(java.lang.String href)
href - the given URL of related HATEOAS link to set.public Link withHref(java.lang.String href)
href - the given URL of related HATEOAS link to set.Link object.public Link clone()
clone in class PropertyContainerpublic java.lang.String elementName()
elementName in class PropertyContainer