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, valueOfpublic URI getUri()
Linkpublic UriBuilder getUriBuilder()
LinkUriBuilder
initialized with this link's underlying URI.getUriBuilder in class Linkpublic String getRel()
Linkrel param, or
null if this param is not specified.public List<String> getRels()
Linkrel param as a list
of strings or the empty list if rel is not defined.public String getTitle()
Linktitle param, or
null if this param is not specified.public String getType()
Linktype param, or
null if this param is not specified.public Map<String,String> getParams()
Linkrel, title and type.public String toString()
LinkCopyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.