public interface BlockingStreamingHttpRequester extends BlockingStreamingHttpRequestFactory, GracefulAutoCloseable
StreamingHttpRequester but with synchronous/blocking APIs instead of asynchronous APIs.| Modifier and Type | Method and Description |
|---|---|
default void |
close() |
HttpExecutionContext |
executionContext()
Get the
HttpExecutionContext used during construction of this object. |
BlockingStreamingHttpResponseFactory |
httpResponseFactory()
|
default BlockingStreamingHttpResponse |
request(BlockingStreamingHttpRequest request)
Send a
request. |
default BlockingStreamingHttpResponse |
request(HttpExecutionStrategy strategy,
BlockingStreamingHttpRequest request)
Deprecated.
Use
request(BlockingStreamingHttpRequest). If an HttpExecutionStrategy needs to be
altered, provide a value for HttpContextKeys.HTTP_EXECUTION_STRATEGY_KEY in the
request context. |
default BlockingStreamingHttpResponse request(BlockingStreamingHttpRequest request) throws Exception
request.request - the request to send.Exception@Deprecated default BlockingStreamingHttpResponse request(HttpExecutionStrategy strategy, BlockingStreamingHttpRequest request) throws Exception
request(BlockingStreamingHttpRequest). If an HttpExecutionStrategy needs to be
altered, provide a value for HttpContextKeys.HTTP_EXECUTION_STRATEGY_KEY in the
request context.request using the passed strategy.strategy - HttpExecutionStrategy to use.request - the request to send.Exception - if an exception occurs during the request processing.HttpExecutionContext executionContext()
HttpExecutionContext used during construction of this object.
Note that the ExecutionContext.ioExecutor() will not necessarily be associated with a specific thread
unless that was how this object was built.
HttpExecutionContext used during construction of this object.BlockingStreamingHttpResponseFactory httpResponseFactory()
BlockingStreamingHttpResponseFactory.default void close()
throws Exception
close in interface AutoCloseableException