org.springframework.hateoas.client
Class Traverson
java.lang.Object
org.springframework.hateoas.client.Traverson
public class Traverson
- extends Object
Component to ease traversing hypermedia APIs by following links with relation types. Highly inspired by the equally
named JavaScript library.
- Since:
- 0.11
- Author:
- Oliver Gierke
- See Also:
https://github.com/basti1302/traverson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Traverson
public Traverson(URI baseUri,
MediaType... mediaTypes)
- Creates a new
Traverson interacting with the given base URI and using the given MediaTypes to
interact with the service.
- Parameters:
baseUri - must not be null.mediaType - must not be null or empty.
follow
public Traverson.TraversalBuilder follow(String... rels)
- Sets up a
Traverson.TraversalBuilder to follow the given rels.
- Parameters:
rels - must not be null or empty.
- Returns:
- See Also:
Traverson.TraversalBuilder
Copyright © 2012-2014-2014 Pivotal, Inc.. All Rights Reserved.