public final class Requester extends Dispatcher
| Constructor and Description |
|---|
Requester(org.springframework.http.client.AsyncClientHttpRequestFactory requestFactory,
org.zalando.riptide.MessageWorker worker,
org.springframework.http.HttpMethod method,
org.springframework.web.util.UriComponentsBuilder urlBuilder,
Object... urlVariables) |
| Modifier and Type | Method and Description |
|---|---|
Requester |
accept(org.springframework.http.MediaType acceptableMediaType,
org.springframework.http.MediaType... acceptableMediaTypes) |
<T> Dispatcher |
body(T body) |
Requester |
contentType(org.springframework.http.MediaType contentType) |
<A> Completion<Void> |
dispatch(RoutingTree<A> tree) |
protected <T> Dispatcher |
execute(com.google.common.collect.Multimap<String,String> query,
org.springframework.http.HttpHeaders headers,
T body) |
Requester |
header(String name,
String value) |
Requester |
headers(org.springframework.http.HttpHeaders headers) |
Requester |
queryParam(String name,
String value) |
Requester |
queryParams(com.google.common.collect.Multimap<String,String> params) |
dispatch, dispatchpublic Requester(org.springframework.http.client.AsyncClientHttpRequestFactory requestFactory,
org.zalando.riptide.MessageWorker worker,
org.springframework.http.HttpMethod method,
org.springframework.web.util.UriComponentsBuilder urlBuilder,
Object... urlVariables)
public final Requester queryParams(com.google.common.collect.Multimap<String,String> params)
public final Requester headers(org.springframework.http.HttpHeaders headers)
public final Requester accept(org.springframework.http.MediaType acceptableMediaType, org.springframework.http.MediaType... acceptableMediaTypes)
public final Requester contentType(org.springframework.http.MediaType contentType)
public final <T> Dispatcher body(T body)
public final <A> Completion<Void> dispatch(RoutingTree<A> tree)
dispatch in class Dispatcherprotected <T> Dispatcher execute(com.google.common.collect.Multimap<String,String> query, org.springframework.http.HttpHeaders headers, @Nullable T body)
Copyright © 2015–2016 Zalando SE. All rights reserved.