Class BufferingHttpClientHandler

java.lang.Object
org.apache.http.nio.protocol.BufferingHttpClientHandler
All Implemented Interfaces:
NHttpClientHandler

@Deprecated @Contract(threading=IMMUTABLE_CONDITIONAL) public class BufferingHttpClientHandler extends Object implements NHttpClientHandler
Deprecated.
Client protocol handler implementation that provides compatibility with the blocking I/O by storing the full content of HTTP messages in memory. The HttpRequestExecutionHandler.handleResponse(HttpResponse, HttpContext) method will fire only when the entire message content has been read into a in-memory buffer. Please note that request execution / response processing take place the main I/O thread and therefore HttpRequestExecutionHandler methods should not block indefinitely.

When using this protocol handler HttpEntity's content can be generated / consumed using standard InputStream/ OutputStream classes.

IMPORTANT: This protocol handler should be used only when dealing with HTTP messages that are known to be limited in length.

Since:
4.0