|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.ws.rs.core.Link
org.glassfish.jersey.message.internal.JerseyLink
public final class JerseyLink
Jersey implementation of JAX-RS Link contract.
| Nested Class Summary | |
|---|---|
static class |
JerseyLink.Builder
Jersey implementation of JAX-RS Link.Builder contract. |
| Nested classes/interfaces inherited from class javax.ws.rs.core.Link |
|---|
Link.JaxbAdapter, Link.JaxbLink |
| Field Summary |
|---|
| Fields inherited from class javax.ws.rs.core.Link |
|---|
REL, TITLE, TYPE |
| Method Summary | |
|---|---|
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). |
| Methods inherited from class javax.ws.rs.core.Link |
|---|
fromLink, fromMethod, fromPath, fromResource, fromUri, fromUri, fromUriBuilder, valueOf |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public URI getUri()
Link
getUri in class 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.
getRel in class Linknull.public List<String> getRels()
Linkrel param as a list
of strings or the empty list if rel is not defined.
getRels in class Linkpublic String getTitle()
Linktitle param, or
null if this param is not specified.
getTitle in class Linknull.public String getType()
Linktype param, or
null if this param is not specified.
getType in class Linknull.public Map<String,String> getParams()
Linkrel, title and type.
getParams in class Linkpublic String toString()
Link
toString in class Linkpublic boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||