| Constructor and Description |
|---|
Builder()
Constructs an instance of
Link.Builder. |
| Modifier and Type | Method and Description |
|---|---|
Link |
build()
Constructs a
Link instance with the current state of the builder. |
void |
clear()
Clears the state of the builder.
|
Link.Builder |
href(java.net.URI href)
Sets the current state of the builder to have the href provided.
|
Link.Builder |
klass(java.lang.String klass)
Adds the class provided to the current state of the builder.
|
Link.Builder |
klasses(java.lang.String... klasses)
Adds the classes provided to the current state of the builder.
|
Link.Builder |
rel(Relation rel)
Adds the relation provided to the current state of the builder.
|
Link.Builder |
rel(java.lang.String rel)
Adds the relation provided to the current state of the builder.
|
Link.Builder |
rel(java.net.URI rel)
Adds the relation provided to the current state of the builder.
|
Link.Builder |
rels(Relation... rels)
Adds the relations provided to the current state of the builder.
|
Link.Builder |
rels(java.lang.String... rels)
Adds the relations provided to the current state of the builder.
|
Link.Builder |
rels(java.net.URI... rels)
Adds the relations provided to the current state of the builder.
|
Link.Builder |
title(java.lang.String title)
Sets current state of the builder to have the title provided.
|
Link.Builder |
type(java.lang.String type)
Sets the current state of the builder to have the type provided.
|
public Builder()
Link.Builder.public Link.Builder rel(java.lang.String rel) throws java.net.URISyntaxException
rel - Defines the relationship of the link to its
entity, per Web Linking (RFC5988) and Link Relations.java.net.URISyntaxException - Thrown if the textual representation of the relation
is not a registered relation, and is not a valid URI. All extension relations must
be in the form of a URI.public Link.Builder rel(java.net.URI rel)
rel - Defines the relationship of the link to its
entity, per Web Linking (RFC5988) and Link Relations.public Link.Builder rel(Relation rel)
rel - Defines the relationship of the link to its
entity, per Web Linking (RFC5988) and Link Relationspublic Link.Builder rels(java.lang.String... rels) throws java.net.URISyntaxException
rels - Defines the relationships of the link to its
entity, per Web Linking (RFC5988) and Link Relations.java.net.URISyntaxException - Thrown if the textual representation of the relation
is not a registered relation, and is not a valid URI. All extension relations must
be in the form of a URI.public Link.Builder rels(java.net.URI... rels)
rels - Defines the relationships of the link to its
entity, per Web Linking (RFC5988) and Link Relations.public Link.Builder rels(Relation... rels)
rels - Defines the relationships of the link to its
entity, per Web Linking (RFC5988) and Link Relations.public Link.Builder href(java.net.URI href)
href - The URI of the linked resource.public Link.Builder klass(java.lang.String klass)
klass - Describes aspects of the link based on the current
representation. Possible values are implementation-dependent
and should be documented.public Link.Builder klasses(java.lang.String... klasses)
klasses - Describes aspects of the link based on the current
representation. Possible values are implementation-dependent
and should be documented.public Link.Builder title(java.lang.String title)
title - Text describing the nature of a link.public Link.Builder type(java.lang.String type)
public void clear()
Copyright © 2017. All Rights Reserved.