ClientHttpRequest implementations.
| Modifier and Type | Class and Description |
|---|---|
| private static enum | AbstractClientHttpRequest.State
COMMITTING -> COMMITTED is the period after doCommit is called but before the response status and headers have been applied to the underlying response during which time pre-commit actions can still make changes to the response status and headers. |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final MultiValueMap | |
| private final HttpHeaders | |
| private HttpHeaders | |
| private final AtomicReference |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | |
| protected abstract void | |
| public void | beforeCommit(Supplier<? extends Mono<Void>>
the action to apply action)Implements org. |
| protected Mono | Returns: a completion publisherA variant of |
| protected Mono | Returns: a completion publisherthe action to write the request body (may be writeAction)null)Apply |
| public MultiValueMap | getCookies()
Implements org. |
| public HttpHeaders | getHeaders()
Implements org. |
| protected HttpHeaders | |
| public boolean | isCommitted()
Implements org. |
| commitActions | back to summary |
|---|---|
| private final List<Supplier<? extends Publisher<Void>>> commitActions | |
| cookies | back to summary |
|---|---|
| private final MultiValueMap<String, HttpCookie> cookies | |
| headers | back to summary |
|---|---|
| private final HttpHeaders headers | |
| readOnlyHeaders | back to summary |
|---|---|
| private HttpHeaders readOnlyHeaders
| |
| state | back to summary |
|---|---|
| private final AtomicReference<AbstractClientHttpRequest. | |
| AbstractClientHttpRequest | back to summary |
|---|---|
| public AbstractClientHttpRequest() | |
| AbstractClientHttpRequest | back to summary |
|---|---|
| public AbstractClientHttpRequest(HttpHeaders headers) | |
| applyCookies | back to summary |
|---|---|
| protected abstract void applyCookies() Add cookies from | |
| applyHeaders | back to summary |
|---|---|
| protected abstract void applyHeaders() Apply header changes from | |
| beforeCommit | back to summary |
|---|---|
| public void beforeCommit(Supplier<? extends Mono<Void>> action) Implements org. Doc from org. Register an action to apply just before the HttpOutputMessage is committed. Note the supplied action must be properly deferred,
e.g. via | |
| doCommit | back to summary |
|---|---|
| protected Mono A variant of | |
| doCommit | back to summary |
|---|---|
| protected Mono Apply | |
| getCookies | back to summary |
|---|---|
| public MultiValueMap Implements org. Doc from org. Return a mutable map of request cookies to send to the server.
| |
| getHeaders | back to summary |
|---|---|
| public HttpHeaders getHeaders() Implements org. Doc from org. Return the headers of this message.
| |
| initReadOnlyHeaders | back to summary |
|---|---|
| protected HttpHeaders initReadOnlyHeaders() Initialize the read-only headers after the request is committed. By default, this method simply applies a read-only wrapper. Subclasses can do the same for headers from the native request.
| |
| isCommitted | back to summary |
|---|---|
| public boolean isCommitted() Implements org. Doc from org. Whether the HttpOutputMessage is committed.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final AbstractClientHttpRequest. | |
| public static final AbstractClientHttpRequest. | |
| public static final AbstractClientHttpRequest. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static AbstractClientHttpRequest. | |
| public static AbstractClientHttpRequest. |
| COMMITTED | back to summary |
|---|---|
| public static final AbstractClientHttpRequest. | |
| COMMITTING | back to summary |
|---|---|
| public static final AbstractClientHttpRequest. | |
| NEW | back to summary |
|---|---|
| public static final AbstractClientHttpRequest. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static AbstractClientHttpRequest. | |
| values | back to summary |
|---|---|
| public static AbstractClientHttpRequest. | |