public interface LinkBuilder
Link
instances.Modifier and Type | Method and Description |
---|---|
LinkBuilder |
slash(Object object)
Adds the given object's
String representation as sub-resource to the current URI. |
URI |
toUri()
Creates a URI of the link built by the current builder instance.
|
Link |
withRel(LinkRelation rel)
Creates the
Link built by the current builder instance with the given LinkRelation . |
default Link |
withRel(String rel)
Creates the
Link built by the current builder instance with the given link relation. |
Link |
withSelfRel()
Creates the
Link built by the current builder instance with the default self link relation. |
LinkBuilder slash(Object object)
String
representation as sub-resource to the current URI.object
- URI toUri()
default Link withRel(String rel)
Link
built by the current builder instance with the given link relation.rel
- must not be null.Link withRel(LinkRelation rel)
Link
built by the current builder instance with the given LinkRelation
.rel
- must not be null or empty.Link withSelfRel()
Link
built by the current builder instance with the default self link relation.IanaLinkRelations.SELF
Copyright © 2012-2019–2019 Pivotal, Inc.. All rights reserved.