public class Link extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Link.Builder |
static class |
Link.Relation
Relations associated with resources.
|
Modifier and Type | Field and Description |
---|---|
protected URI |
href |
protected Link.Relation |
relation |
protected String |
type |
Modifier | Constructor and Description |
---|---|
protected |
Link(Link.Relation relation,
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 object) |
URI |
getHref() |
Link.Relation |
getRelation()
There are three kinds of link relations associated with resources.
|
String |
getType() |
int |
hashCode() |
Link.Builder |
toBuilder() |
String |
toString() |
@Named(value="rel") protected Link.Relation relation
protected String type
protected URI href
@ConstructorProperties(value={"rel","type","href"}) protected Link(Link.Relation relation, @Nullable 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 URI getHref()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.