ClientResponse.Builder .
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private Flux | |
| private MultiValueMap | |
| private static final HttpRequest | |
| private HttpHeaders | |
| private ClientResponse | |
| private HttpRequest | |
| private HttpStatusCode | |
| private final ExchangeStrategies |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| body | back to summary |
|---|---|
| private Flux<DataBuffer> body | |
| cookies | back to summary |
|---|---|
| private MultiValueMap<String, ResponseCookie> cookies
| |
| EMPTY_REQUEST | back to summary |
|---|---|
| private static final HttpRequest EMPTY_REQUEST | |
| headers | back to summary |
|---|---|
| private HttpHeaders headers
| |
| originalResponse | back to summary |
|---|---|
| private ClientResponse originalResponse
| |
| request | back to summary |
|---|---|
| private HttpRequest request | |
| statusCode | back to summary |
|---|---|
| private HttpStatusCode statusCode | |
| strategies | back to summary |
|---|---|
| private final ExchangeStrategies strategies | |
| DefaultClientResponseBuilder | back to summary |
|---|---|
| pack-priv DefaultClientResponseBuilder(ExchangeStrategies strategies) | |
| DefaultClientResponseBuilder | back to summary |
|---|---|
| pack-priv DefaultClientResponseBuilder(ClientResponse other, boolean mutate) | |
| body | back to summary |
|---|---|
| public ClientResponse. Implements org. Doc from org. Transform the response body, if set in the builder.
| |
| body | back to summary |
|---|---|
| public ClientResponse. Implements org. Doc from org. Set the body of the response. Note This method will drain the existing body, if set in the builder.
| |
| body | back to summary |
|---|---|
| public ClientResponse. Implements org. Doc from org. Set the body of the response to the UTF-8 encoded bytes of the given string. Note This method will drain the existing body, if set in the builder.
| |
| build | back to summary |
|---|---|
| public ClientResponse build() Implements org. Doc from org. Build the response.
| |
| cookie | back to summary |
|---|---|
| public DefaultClientResponseBuilder cookie(String name, String... values) Implements org. Doc from org. Add a cookie with the given name and value(s).
| |
| cookies | back to summary |
|---|---|
| public ClientResponse. Implements org. Doc from org. Manipulate this response's cookies with the given consumer. The map provided to the consumer is "live", so that the consumer can be used to
overwrite existing cookie values,
remove values, or use any of the other
| |
| getCookies | back to summary |
|---|---|
private MultiValueMap
| |
| getHeaders | back to summary |
|---|---|
private HttpHeaders getHeaders()
| |
| header | back to summary |
|---|---|
| public ClientResponse. Implements org. Doc from org. Add the given header value(s) under the given name.
| |
| headers | back to summary |
|---|---|
| public ClientResponse. Implements org. Doc from org. Manipulate this response's headers with the given consumer. The headers provided to the consumer are "live", so that the consumer
can be used to overwrite
existing header values, remove
values, or use any of the other
| |
| rawStatusCode | back to summary |
|---|---|
| public DefaultClientResponseBuilder rawStatusCode(int statusCode) Implements org. Doc from org. Set the raw status code of the response.
| |
| releaseBody | back to summary |
|---|---|
| private void releaseBody() | |
| request | back to summary |
|---|---|
| public ClientResponse. Implements org. Doc from org. Set the request associated with the response.
| |
| statusCode | back to summary |
|---|---|
| public DefaultClientResponseBuilder statusCode(HttpStatusCode statusCode) Implements org. Doc from org. Set the status code of the response.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Flux | |
| private final MultiValueMap | |
| private final HttpHeaders | |
| private final ClientResponse | |
| private final HttpStatusCode |
| Access | Constructor and Description |
|---|---|
| pack-priv | BuiltClientHttpResponse(HttpStatusCode statusCode, HttpHeaders headers, MultiValueMap<String, ResponseCookie> cookies, Flux<DataBuffer> body, ClientResponse originalResponse)
|
| Modifier and Type | Method and Description |
|---|---|
| public Flux | getBody()
Implements org. Return the body of the message as a |
| public MultiValueMap | getCookies()
Implements org. Return a read-only map of response cookies received from the server. |
| public HttpHeaders | getHeaders()
Implements org. Return the headers of this message. |
| public HttpStatusCode | getStatusCode()
Implements org. Return the HTTP status code as an |
| body | back to summary |
|---|---|
| private final Flux<DataBuffer> body | |
| cookies | back to summary |
|---|---|
| private final MultiValueMap<String, ResponseCookie> cookies
| |
| headers | back to summary |
|---|---|
| private final HttpHeaders headers
| |
| originalResponse | back to summary |
|---|---|
| private final ClientResponse originalResponse
| |
| statusCode | back to summary |
|---|---|
| private final HttpStatusCode statusCode | |
| BuiltClientHttpResponse | back to summary |
|---|---|
| pack-priv BuiltClientHttpResponse(HttpStatusCode statusCode, HttpHeaders headers, MultiValueMap<String, ResponseCookie> cookies, Flux<DataBuffer> body, ClientResponse originalResponse) | |
| getBody | back to summary |
|---|---|
| public Flux Implements org. Doc from org. Return the body of the message as a
| |
| getCookies | back to summary |
|---|---|
| public MultiValueMap Implements org. Doc from org. Return a read-only map of response cookies received from the server.
| |
| getHeaders | back to summary |
|---|---|
| public HttpHeaders getHeaders() Implements org. Doc from org. Return the headers of this message.
| |
| getStatusCode | back to summary |
|---|---|
| public HttpStatusCode getStatusCode() Implements org. Doc from org. Return the HTTP status code as an
| |