Package org.jboss.resteasy.specimpl
Class LinkImpl
java.lang.Object
jakarta.ws.rs.core.Link
org.jboss.resteasy.specimpl.LinkImpl
- 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 -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final RuntimeDelegate.HeaderDelegate<Link>A map for all the link parameters such as "rel", "type", etc.protected final URI -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns an immutable map that includes all the link parameters defined on this link.getRel()Returns the value associated with the linkrelparam, ornullif this param is not specified.getRels()Returns the value associated with the linkrelparam as a list of strings or the empty list ifrelis not defined.getTitle()Returns the value associated with the linktitleparam, ornullif this param is not specified.getType()Returns the value associated with the linktypeparam, ornullif this param is not specified.getUri()Returns the underlying URI associated with this link.Convenience method that returns aUriBuilderinitialized with this link's underlying URI.inthashCode()toString()Returns a string representation as a link header (RFC 5988).static LinkMethods inherited from class jakarta.ws.rs.core.Link
fromLink, fromMethod, fromPath, fromResource, fromUri, fromUri, fromUriBuilder
-
Field Details
-
uri
-
map
A map for all the link parameters such as "rel", "type", etc. -
delegate
-
-
Method Details
-
valueOf
-
getUri
Description copied from class:LinkReturns the underlying URI associated with this link. -
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
Description copied from class:LinkReturns the value associated with the linkrelparam, ornullif this param is not specified. -
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
Description copied from class:LinkReturns the value associated with the linktitleparam, ornullif this param is not specified. -
getType
Description copied from class:LinkReturns the value associated with the linktypeparam, ornullif this param is not specified. -
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. -
equals
-
hashCode
public int hashCode() -
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"
-