ClientHttpRequest for the Java HttpClient.
| Modifier and Type | Field and Description |
|---|---|
| private final DataBufferFactory | |
| private final java. | |
| private final HttpMethod | |
| private final URI |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | applyCookies()
Implements abstract org. getHeaders() to the underlying request.
|
| protected void | applyHeaders()
Implements abstract org. getHeaders() to the underlying request.
|
| public DataBufferFactory | bufferFactory()
Implements org. DataBufferFactory that can be used to create the body.
|
| public HttpMethod | getMethod()
Implements org. |
| public <T> T | getNativeRequest()
Implements org. |
| public URI | getURI()
Implements org. |
| public Mono | setComplete()
Implements org. getHeaders() to the underlying HTTP message (if not
applied already).
|
| private java. | |
| private ByteBuffer | |
| public Mono | writeAndFlushWith(final Publisher<? extends Publisher<? extends DataBuffer>>
the body content publisher body)Implements org. Publisher of Publishers to write the body
of the HttpOutputMessage to the underlying HTTP layer, flushing after
each Publisher<DataBuffer>.
|
| public Mono | writeWith(Publisher<? extends DataBuffer>
the body content publisher body)Implements org. Publisher to write the body of the message to the
underlying HTTP layer.
|
| bufferFactory | back to summary |
|---|---|
| private final DataBufferFactory bufferFactory | |
| builder | back to summary |
|---|---|
| private final java. | |
| method | back to summary |
|---|---|
| private final HttpMethod method | |
| uri | back to summary |
|---|---|
| private final URI uri | |
| JdkClientHttpRequest | back to summary |
|---|---|
| public JdkClientHttpRequest(HttpMethod httpMethod, URI uri, DataBufferFactory bufferFactory) | |
| applyCookies | back to summary |
|---|---|
| protected void applyCookies() Implements abstract org. Doc from org. Add cookies from
| |
| applyHeaders | back to summary |
|---|---|
| protected void applyHeaders() Implements abstract org. Doc from org. Apply header changes from
| |
| bufferFactory | back to summary |
|---|---|
| public DataBufferFactory bufferFactory() Implements org. Doc from org. Return a
| |
| getMethod | back to summary |
|---|---|
| public HttpMethod getMethod() Implements org. Doc from org. Return the HTTP method of the request.
| |
| getNativeRequest | back to summary |
|---|---|
| public <T> T getNativeRequest() Implements org. Doc from org. Return the request from the underlying HTTP library.
| |
| getURI | back to summary |
|---|---|
| public URI getURI() Implements org. Doc from org. Return the URI of the request.
| |
| setComplete | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Indicate that message handling is complete, allowing for any cleanup or
end-of-processing tasks to be performed such as applying header changes
made via This method should be automatically invoked at the end of message processing so typically applications should not have to invoke it. If invoked multiple times it should have no side effects. | |
| toBodyPublisher | back to summary |
|---|---|
| private java. | |
| toByteBuffer | back to summary |
|---|---|
| private ByteBuffer toByteBuffer(DataBuffer dataBuffer) | |
| writeAndFlushWith | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Use the given | |
| writeWith | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Use the given | |