public final class JerseyLink extends Link
JAX-RS Link
contract.Modifier and Type | Class and Description |
---|---|
static class |
JerseyLink.Builder
Jersey implementation of
JAX-RS Link.Builder contract. |
Link.JaxbAdapter, Link.JaxbLink
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).
|
fromLink, fromMethod, fromPath, fromResource, fromUri, fromUri, fromUriBuilder, valueOf
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
.public String toString()
Link
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.