public class Link extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Link.Builder |
static class |
Link.Relation
Relations associated with resources.
|
Modifier | Constructor and Description |
---|---|
protected |
Link(Link.Relation relation,
com.google.common.base.Optional<String> type,
URI href) |
Modifier and Type | Method and Description |
---|---|
static Link.Builder |
builder() |
static Link |
create(Link.Relation relation,
String type,
URI href) |
static Link |
create(Link.Relation relation,
URI href) |
boolean |
equals(Object obj) |
URI |
getHref() |
Link.Relation |
getRelation()
There are three kinds of link relations associated with resources.
|
com.google.common.base.Optional<String> |
getType() |
int |
hashCode() |
protected com.google.common.base.Objects.ToStringHelper |
string() |
Link.Builder |
toBuilder() |
String |
toString() |
@ConstructorProperties(value={"rel","type","href"}) protected Link(Link.Relation relation, com.google.common.base.Optional<String> type, URI href)
public static Link create(Link.Relation relation, URI href)
public static Link create(Link.Relation relation, String type, URI href)
public static Link.Builder builder()
public Link.Builder toBuilder()
public Link.Relation getRelation()
public com.google.common.base.Optional<String> getType()
public URI getHref()
protected com.google.common.base.Objects.ToStringHelper string()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.