public class RxJava1ClientWebRequestBuilder extends Object implements ClientWebRequestBuilder
ClientHttpRequest using a Observable
or Single as request body.
See static factory methods in RxJava1ClientWebRequestBuilders
RxJava1ClientWebRequestBuilders| Constructor and Description |
|---|
RxJava1ClientWebRequestBuilder(HttpMethod httpMethod,
String urlTemplate,
Object... urlVariables) |
RxJava1ClientWebRequestBuilder(HttpMethod httpMethod,
URI url) |
| Modifier and Type | Method and Description |
|---|---|
RxJava1ClientWebRequestBuilder |
accept(MediaType... mediaTypes)
Set the Accept request header to the given
MediaTypes |
RxJava1ClientWebRequestBuilder |
accept(String... mediaTypes)
Set the Accept request header to the given media types
|
RxJava1ClientWebRequestBuilder |
apply(ClientWebRequestPostProcessor postProcessor)
Allows performing more complex operations with a strategy.
|
RxJava1ClientWebRequestBuilder |
body(Object content)
Use the given object as the request body
|
RxJava1ClientWebRequestBuilder |
body(rx.Observable<?> content,
ResolvableType elementType)
Use the given
Observable as the request body and use its ResolvableType
as type information for the elements published by this reactive stream |
RxJava1ClientWebRequestBuilder |
body(rx.Single<?> content,
ResolvableType elementType)
Use the given
Single as the request body and use its ResolvableType
as type information for the element published by this reactive stream |
ClientWebRequest |
build() |
RxJava1ClientWebRequestBuilder |
contentType(MediaType contentType)
Set the Content-Type request header to the given
MediaType |
RxJava1ClientWebRequestBuilder |
contentType(String contentType)
Set the Content-Type request header to the given media type
|
RxJava1ClientWebRequestBuilder |
cookie(HttpCookie cookie)
Add a Cookie to the HTTP request
|
RxJava1ClientWebRequestBuilder |
cookie(String name,
String value)
Add a Cookie to the HTTP request
|
RxJava1ClientWebRequestBuilder |
header(String name,
String... values)
Add an HTTP request header
|
RxJava1ClientWebRequestBuilder |
headers(HttpHeaders httpHeaders)
Add all provided HTTP request headers
|
public RxJava1ClientWebRequestBuilder(HttpMethod httpMethod, String urlTemplate, Object... urlVariables) throws RestClientException
RestClientExceptionpublic RxJava1ClientWebRequestBuilder(HttpMethod httpMethod, URI url)
public RxJava1ClientWebRequestBuilder header(String name, String... values)
public RxJava1ClientWebRequestBuilder headers(HttpHeaders httpHeaders)
public RxJava1ClientWebRequestBuilder contentType(MediaType contentType)
MediaTypepublic RxJava1ClientWebRequestBuilder contentType(String contentType)
public RxJava1ClientWebRequestBuilder accept(MediaType... mediaTypes)
MediaTypespublic RxJava1ClientWebRequestBuilder accept(String... mediaTypes)
public RxJava1ClientWebRequestBuilder cookie(String name, String value)
public RxJava1ClientWebRequestBuilder cookie(HttpCookie cookie)
public RxJava1ClientWebRequestBuilder apply(ClientWebRequestPostProcessor postProcessor)
ClientWebRequestPostProcessor implementation might accept the arguments of username
and password and set an HTTP Basic authentication header.postProcessor - the ClientWebRequestPostProcessor to use. Cannot be null.public RxJava1ClientWebRequestBuilder body(Object content)
public RxJava1ClientWebRequestBuilder body(rx.Single<?> content, ResolvableType elementType)
Single as the request body and use its ResolvableType
as type information for the element published by this reactive streampublic RxJava1ClientWebRequestBuilder body(rx.Observable<?> content, ResolvableType elementType)
Observable as the request body and use its ResolvableType
as type information for the elements published by this reactive streampublic ClientWebRequest build()
build in interface ClientWebRequestBuilder