Package org.jboss.resteasy.specimpl
Class LinkImpl
- java.lang.Object
-
- jakarta.ws.rs.core.Link
-
- org.jboss.resteasy.specimpl.LinkImpl
-
public class LinkImpl extends Link
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jakarta.ws.rs.core.Link
Link.Builder, Link.JaxbAdapter, Link.JaxbLink
-
-
Method Summary
All Methods Static 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).static LinkvalueOf(String value)-
Methods inherited from class jakarta.ws.rs.core.Link
fromLink, fromMethod, fromPath, fromResource, fromUri, fromUri, fromUriBuilder
-
-
-
-
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.
-
-