Class JerseyLink
- java.lang.Object
-
- jakarta.ws.rs.core.Link
-
- org.glassfish.jersey.message.internal.JerseyLink
-
public final class JerseyLink extends Link
Jersey implementation ofJAX-RS Linkcontract.- Author:
- Marek Potociar
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJerseyLink.BuilderJersey implementation ofJAX-RS Link.Buildercontract.-
Nested classes/interfaces inherited from class jakarta.ws.rs.core.Link
Link.JaxbAdapter, Link.JaxbLink
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)Map<String,String>getParams()Returns an immutable map that includes all the link parameters defined on this link.StringgetRel()Returns the value associated with the linkrelparam, ornullif this param is not specified.List<String>getRels()Returns the value associated with the linkrelparam as a list of strings or the empty list ifrelis not defined.StringgetTitle()Returns the value associated with the linktitleparam, ornullif this param is not specified.StringgetType()Returns the value associated with the linktypeparam, ornullif this param is not specified.URIgetUri()Returns the underlying URI associated with this link.UriBuildergetUriBuilder()Convenience method that returns aUriBuilderinitialized with this link's underlying URI.inthashCode()StringtoString()Returns a string representation as a link header (RFC 5988).-
Methods inherited from class jakarta.ws.rs.core.Link
fromLink, fromMethod, fromPath, fromResource, fromUri, fromUri, fromUriBuilder, valueOf
-
-
-
-
Method Detail
-
getUri
public URI getUri()
Description copied from class:LinkReturns the underlying URI associated with this link.
-
getUriBuilder
public UriBuilder getUriBuilder()
Description copied from class:LinkConvenience method that returns aUriBuilderinitialized with this link's underlying URI.- Specified by:
getUriBuilderin classLink- Returns:
- UriBuilder initialized using underlying URI.
-
getRel
public String getRel()
Description copied from class:LinkReturns the value associated with the linkrelparam, ornullif this param is not specified.
-
getRels
public List<String> getRels()
Description copied from class:LinkReturns the value associated with the linkrelparam as a list of strings or the empty list ifrelis not defined.
-
getTitle
public String getTitle()
Description copied from class:LinkReturns the value associated with the linktitleparam, ornullif this param is not specified.
-
getType
public String getType()
Description copied from class:LinkReturns the value associated with the linktypeparam, ornullif this param is not specified.
-
getParams
public Map<String,String> getParams()
Description copied from class:LinkReturns an immutable map that includes all the link parameters defined on this link. If defined, this map will include entries forrel,titleandtype.
-
toString
public String toString()
Description copied from class:LinkReturns a string representation as a link header (RFC 5988). All link params are serialized as link-param="value" where value is a quoted-string. For example, <http://foo.bar/employee/john>; title="employee"; rel="manager friend"
-
-