|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.hateoas.client.Traverson.TraversalBuilder
public class Traverson.TraversalBuilder
Builder API to customize traversals.
| Method Summary | ||
|---|---|---|
Link |
asLink()
Returns the Link found for the last rel int the rels configured to follow. |
|
|
toEntity(Class<T> type)
Returns the raw ResponseEntity with the representation unmarshalled into an instance of the given type. |
|
|
toObject(Class<T> type)
Executes the traversal and marshals the final response into an object of the given type. |
|
|
toObject(ParameterizedTypeReference<T> type)
Executes the traversal and marshals the final response into an object of the given ParameterizedTypeReference. |
|
|
toObject(String jsonPath)
Executes the traversal and returns the result of the given JSON Path expression evaluated against the final representation. |
|
Traverson.TraversalBuilder |
withHeaders(HttpHeaders headers)
The HttpHeaders that shall be used for the requests of the traversal. |
|
Traverson.TraversalBuilder |
withTemplateParameters(Map<String,Object> parameters)
Adds the given operations parameters to the traversal. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Traverson.TraversalBuilder withTemplateParameters(Map<String,Object> parameters)
parameters - can be null.
public Traverson.TraversalBuilder withHeaders(HttpHeaders headers)
HttpHeaders that shall be used for the requests of the traversal.
headers - can be null.
public <T> T toObject(Class<T> type)
type - must not be null.
public <T> T toObject(ParameterizedTypeReference<T> type)
ParameterizedTypeReference.
type - must not be null.
public <T> T toObject(String jsonPath)
jsonPath - must not be null or empty.
public <T> ResponseEntity<T> toEntity(Class<T> type)
ResponseEntity with the representation unmarshalled into an instance of the given type.
type - must not be null.
public Link asLink()
Link found for the last rel int the rels configured to follow.
|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||