Class BufferingHttpServiceHandler

java.lang.Object
org.apache.http.nio.protocol.BufferingHttpServiceHandler
All Implemented Interfaces:
NHttpServiceHandler

@Deprecated @Contract(threading=IMMUTABLE_CONDITIONAL) public class BufferingHttpServiceHandler extends Object implements NHttpServiceHandler
Deprecated.
Service protocol handler implementations that provide compatibility with the blocking I/O by storing the full content of HTTP messages in memory. The HttpRequestHandler.handle(HttpRequest, HttpResponse, HttpContext) method will fire only when the entire message content has been read into an in-memory buffer. Please note that request processing take place the main I/O thread and therefore individual HTTP request handlers 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