ClientHttpRequest implementation for the Jetty ReactiveStreams HTTP client.
| Modifier and Type | Field and Description |
|---|---|
| private final DataBufferFactory | |
| private final ReactiveRequest. | |
| private final Request |
| 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.
|
| private String | |
| public HttpMethod | getMethod()
Implements org. |
| public <T> T | getNativeRequest()
Implements org. |
| public URI | getURI()
Implements org. |
| protected HttpHeaders | initReadOnlyHeaders()
Overrides org. |
| public Mono | setComplete()
Implements org. getHeaders() to the underlying HTTP message (if not
applied already).
|
| private List | |
| public ReactiveRequest | |
| public Mono | writeAndFlushWith(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 ReactiveRequest. | |
| jettyRequest | back to summary |
|---|---|
| private final Request jettyRequest | |
| JettyClientHttpRequest | back to summary |
|---|---|
| public JettyClientHttpRequest(Request jettyRequest, 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
| |
| getContentType | back to summary |
|---|---|
| private String getContentType() | |
| 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.
| |
| initReadOnlyHeaders | back to summary |
|---|---|
| protected HttpHeaders initReadOnlyHeaders() Overrides org. Doc from org. 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.
| |
| 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. | |
| toContentChunks | back to summary |
|---|---|
| private List | |
| toReactiveRequest | back to summary |
|---|---|
| public ReactiveRequest toReactiveRequest() | |
| 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 | |