public class LinkImpl extends Link
Link.Builder, Link.JaxbAdapter, Link.JaxbLink
Modifier and Type | Field and Description |
---|---|
protected static RuntimeDelegate.HeaderDelegate<Link> |
delegate |
protected Map<String,String> |
map
A map for all the link parameters such as "rel", "type", etc.
|
protected URI |
uri |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Map<String,String> |
getParams()
Returns an immutable map that includes all the link parameters
defined on this link.
|
String |
getRel()
Returns the value associated with the link
rel param, or
null if this param is not specified. |
List<String> |
getRels()
Returns the value associated with the link
rel param as a list
of strings or the empty list if rel is not defined. |
String |
getTitle()
Returns the value associated with the link
title param, or
null if this param is not specified. |
String |
getType()
Returns the value associated with the link
type param, or
null if this param is not specified. |
URI |
getUri()
Returns the underlying URI associated with this link.
|
UriBuilder |
getUriBuilder()
Convenience method that returns a
UriBuilder
initialized with this link's underlying URI. |
int |
hashCode() |
String |
toString()
Returns a string representation as a link header (RFC 5988).
|
static Link |
valueOf(String value) |
fromLink, fromMethod, fromPath, fromResource, fromUri, fromUri, fromUriBuilder
protected final URI uri
protected final Map<String,String> map
protected static final RuntimeDelegate.HeaderDelegate<Link> delegate
public URI getUri()
Link
public UriBuilder getUriBuilder()
Link
UriBuilder
initialized with this link's underlying URI.getUriBuilder
in class Link
public String getRel()
Link
rel
param, or
null
if this param is not specified.public List<String> getRels()
Link
rel
param as a list
of strings or the empty list if rel
is not defined.public String getTitle()
Link
title
param, or
null
if this param is not specified.public String getType()
Link
type
param, or
null
if this param is not specified.public Map<String,String> getParams()
Link
rel
, title
and type
.Copyright © 2021 JBoss by Red Hat. All rights reserved.