## Uses of Interface
org.apache.http.nio.util.ByteBufferAllocator

- Packages that use ByteBufferAllocator
  Package | Description
  --- | ---
  org.apache.http.impl.nio | Default implementations for interfaces in `org.apache.http.nio`.
  org.apache.http.impl.nio.pool | Basic implementations for interfaces in `org.apache.http.nio.pool`.
  org.apache.http.impl.nio.reactor | Default implementations for interfaces in `org.apache.http.nio` including default I/O reactor implementations and support for SSL/TLS transport security.
  org.apache.http.nio.entity | Common HTTP entity implementations with extensions for asynchronous (non-blocking) data transfer.
  org.apache.http.nio.protocol | Asynchronous HTTP protocol handlers based on the non-blocking I/O model.
  org.apache.http.nio.util | Various buffering primitives intended to facilitate content streaming for non-blocking HTTP connections.

- - ### Uses of ByteBufferAllocator in org.apache.http.impl.nio

    Fields in org.apache.http.impl.nio declared as ByteBufferAllocator
    Modifier and Type | Field and Description
    --- | ---
    `protected ByteBufferAllocator` | DefaultServerIOEventDispatch.`allocator` Deprecated.
    `protected ByteBufferAllocator` | DefaultClientIOEventDispatch.`allocator` Deprecated.

    Methods in org.apache.http.impl.nio that return ByteBufferAllocator
    Modifier and Type | Method and Description
    --- | ---
    `protected ByteBufferAllocator` | SSLClientIOEventDispatch.`createByteBufferAllocator()` Deprecated. Creates an instance of `HeapByteBufferAllocator` to be used by HTTP connections for allocating `ByteBuffer` objects.
    `protected ByteBufferAllocator` | DefaultServerIOEventDispatch.`createByteBufferAllocator()` Deprecated. Creates an instance of `HeapByteBufferAllocator` to be used by HTTP connections for allocating `ByteBuffer` objects.
    `protected ByteBufferAllocator` | SSLServerIOEventDispatch.`createByteBufferAllocator()` Deprecated. Creates an instance of `HeapByteBufferAllocator` to be used by HTTP connections for allocating `ByteBuffer` objects.
    `protected ByteBufferAllocator` | DefaultClientIOEventDispatch.`createByteBufferAllocator()` Deprecated. Creates an instance of `HeapByteBufferAllocator` to be used by HTTP connections for allocating `ByteBuffer` objects.

    Methods in org.apache.http.impl.nio with parameters of type ByteBufferAllocator
    Modifier and Type | Method and Description
    --- | ---
    `protected DefaultNHttpServerConnection` | DefaultNHttpServerConnectionFactory.`createConnection(IOSession session, HttpRequestFactory requestFactory, ByteBufferAllocator allocator, HttpParams params)` Deprecated. (4.3) no longer used.
    `protected DefaultNHttpServerConnection` | SSLNHttpServerConnectionFactory.`createConnection(IOSession session, HttpRequestFactory requestFactory, ByteBufferAllocator allocator, HttpParams params)` Deprecated. (4.3) no longer used.
    `protected DefaultNHttpClientConnection` | SSLNHttpClientConnectionFactory.`createConnection(IOSession session, HttpResponseFactory responseFactory, ByteBufferAllocator allocator, HttpParams params)` Deprecated. (4.3) no longer used.
    `protected DefaultNHttpClientConnection` | DefaultNHttpClientConnectionFactory.`createConnection(IOSession session, HttpResponseFactory responseFactory, ByteBufferAllocator allocator, HttpParams params)` Deprecated. (4.3) no longer used.

    Constructors in org.apache.http.impl.nio with parameters of type ByteBufferAllocator
    Constructor and Description
    `DefaultNHttpClientConnection(IOSession session, HttpResponseFactory responseFactory, ByteBufferAllocator allocator, HttpParams params)` Deprecated. (4.3) use `DefaultNHttpClientConnection.DefaultNHttpClientConnection( IOSession, int, int, ByteBufferAllocator, CharsetDecoder, CharsetEncoder, MessageConstraints, ContentLengthStrategy, ContentLengthStrategy, NHttpMessageWriterFactory, NHttpMessageParserFactory)`
    `DefaultNHttpClientConnection(IOSession session, int buffersize, int fragmentSizeHint, ByteBufferAllocator allocator, CharsetDecoder chardecoder, CharsetEncoder charencoder, MessageConstraints constraints, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, NHttpMessageWriterFactory<HttpRequest> requestWriterFactory, NHttpMessageParserFactory<HttpResponse> responseParserFactory)` Creates new instance DefaultNHttpClientConnection given the underlying I/O session.
    `DefaultNHttpClientConnectionFactory(ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, NHttpMessageParserFactory<HttpResponse> responseParserFactory, NHttpMessageWriterFactory<HttpRequest> requestWriterFactory, ByteBufferAllocator allocator, ConnectionConfig cconfig)`
    `DefaultNHttpClientConnectionFactory(HttpResponseFactory responseFactory, ByteBufferAllocator allocator, HttpParams params)` Deprecated. (4.3) use `DefaultNHttpClientConnectionFactory.DefaultNHttpClientConnectionFactory( NHttpMessageParserFactory, NHttpMessageWriterFactory, ByteBufferAllocator, ConnectionConfig)`
    `DefaultNHttpClientConnectionFactory(NHttpMessageParserFactory<HttpResponse> responseParserFactory, NHttpMessageWriterFactory<HttpRequest> requestWriterFactory, ByteBufferAllocator allocator, ConnectionConfig cconfig)`
    `DefaultNHttpServerConnection(IOSession session, HttpRequestFactory requestFactory, ByteBufferAllocator allocator, HttpParams params)` Deprecated. (4.3) use `DefaultNHttpServerConnection.DefaultNHttpServerConnection( IOSession, int, int, ByteBufferAllocator, CharsetDecoder, CharsetEncoder, MessageConstraints, ContentLengthStrategy, ContentLengthStrategy, NHttpMessageParserFactory, NHttpMessageWriterFactory)`
    `DefaultNHttpServerConnection(IOSession session, int buffersize, int fragmentSizeHint, ByteBufferAllocator allocator, CharsetDecoder chardecoder, CharsetEncoder charencoder, MessageConstraints constraints, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, NHttpMessageParserFactory<HttpRequest> requestParserFactory, NHttpMessageWriterFactory<HttpResponse> responseWriterFactory)` Creates new instance DefaultNHttpServerConnection given the underlying I/O session.
    `DefaultNHttpServerConnectionFactory(ByteBufferAllocator allocator, NHttpMessageParserFactory<HttpRequest> requestParserFactory, NHttpMessageWriterFactory<HttpResponse> responseWriterFactory, ConnectionConfig cconfig)`
    `DefaultNHttpServerConnectionFactory(ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, NHttpMessageParserFactory<HttpRequest> requestParserFactory, NHttpMessageWriterFactory<HttpResponse> responseWriterFactory, ByteBufferAllocator allocator, ConnectionConfig cconfig)`
    `DefaultNHttpServerConnectionFactory(HttpRequestFactory requestFactory, ByteBufferAllocator allocator, HttpParams params)` Deprecated. (4.3) use `DefaultNHttpServerConnectionFactory.DefaultNHttpServerConnectionFactory( ByteBufferAllocator, NHttpMessageParserFactory, NHttpMessageWriterFactory, ConnectionConfig)`
    `NHttpConnectionBase(IOSession session, ByteBufferAllocator allocator, HttpParams params)` Deprecated. (4.3) use `NHttpConnectionBase.NHttpConnectionBase(IOSession, int, int, ByteBufferAllocator, CharsetDecoder, CharsetEncoder, ContentLengthStrategy, ContentLengthStrategy)`
    `NHttpConnectionBase(IOSession session, int buffersize, int fragmentSizeHint, ByteBufferAllocator allocator, CharsetDecoder chardecoder, CharsetEncoder charencoder, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy)` Creates new instance NHttpConnectionBase given the underlying I/O session.
    `SSLNHttpClientConnectionFactory(SSLContext sslcontext, SSLSetupHandler sslHandler, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, NHttpMessageParserFactory<HttpResponse> responseParserFactory, NHttpMessageWriterFactory<HttpRequest> requestWriterFactory, ByteBufferAllocator allocator, ConnectionConfig cconfig)`
    `SSLNHttpClientConnectionFactory(SSLContext sslcontext, SSLSetupHandler sslHandler, HttpResponseFactory responseFactory, ByteBufferAllocator allocator, HttpParams params)` Deprecated. (4.3) use `SSLNHttpClientConnectionFactory.SSLNHttpClientConnectionFactory(SSLContext, SSLSetupHandler, NHttpMessageParserFactory, NHttpMessageWriterFactory, ByteBufferAllocator, ConnectionConfig)`
    `SSLNHttpClientConnectionFactory(SSLContext sslcontext, SSLSetupHandler sslHandler, NHttpMessageParserFactory<HttpResponse> responseParserFactory, NHttpMessageWriterFactory<HttpRequest> requestWriterFactory, ByteBufferAllocator allocator, ConnectionConfig cconfig)`
    `SSLNHttpServerConnectionFactory(SSLContext sslcontext, SSLSetupHandler sslHandler, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, NHttpMessageParserFactory<HttpRequest> requestParserFactory, NHttpMessageWriterFactory<HttpResponse> responseWriterFactory, ByteBufferAllocator allocator, ConnectionConfig cconfig)`
    `SSLNHttpServerConnectionFactory(SSLContext sslcontext, SSLSetupHandler sslHandler, HttpRequestFactory requestFactory, ByteBufferAllocator allocator, HttpParams params)` Deprecated. (4.3) use `SSLNHttpServerConnectionFactory.SSLNHttpServerConnectionFactory(SSLContext, SSLSetupHandler, NHttpMessageParserFactory, NHttpMessageWriterFactory, ByteBufferAllocator, ConnectionConfig)`
    `SSLNHttpServerConnectionFactory(SSLContext sslcontext, SSLSetupHandler sslHandler, NHttpMessageParserFactory<HttpRequest> requestParserFactory, NHttpMessageWriterFactory<HttpResponse> responseWriterFactory, ByteBufferAllocator allocator, ConnectionConfig cconfig)`

  - ### Uses of ByteBufferAllocator in org.apache.http.impl.nio.pool

    Constructors in org.apache.http.impl.nio.pool with parameters of type ByteBufferAllocator
    Constructor and Description
    `BasicNIOConnFactory(SSLContext sslcontext, SSLSetupHandler sslHandler, HttpResponseFactory responseFactory, ByteBufferAllocator allocator, HttpParams params)` Deprecated. (4.3) use `BasicNIOConnFactory.BasicNIOConnFactory(SSLContext, SSLSetupHandler, NHttpMessageParserFactory, NHttpMessageWriterFactory, ByteBufferAllocator, ConnectionConfig)`
    `BasicNIOConnFactory(SSLContext sslcontext, SSLSetupHandler sslHandler, NHttpMessageParserFactory<HttpResponse> responseParserFactory, NHttpMessageWriterFactory<HttpRequest> requestWriterFactory, ByteBufferAllocator allocator, ConnectionConfig config)`

  - ### Uses of ByteBufferAllocator in org.apache.http.impl.nio.reactor

    Constructors in org.apache.http.impl.nio.reactor with parameters of type ByteBufferAllocator
    Constructor and Description
    `SessionInputBufferImpl(int buffersize, int lineBuffersize, ByteBufferAllocator allocator, HttpParams params)` Deprecated. (4.3) use `SessionInputBufferImpl.SessionInputBufferImpl(int, int, CharsetDecoder, ByteBufferAllocator)`
    `SessionInputBufferImpl(int buffersize, int lineBuffersize, CharsetDecoder chardecoder, ByteBufferAllocator allocator)` Creates SessionInputBufferImpl instance.
    `SessionOutputBufferImpl(int buffersize, int lineBuffersize, ByteBufferAllocator allocator, HttpParams params)` Deprecated. (4.3) use `SessionOutputBufferImpl.SessionOutputBufferImpl(int, int, CharsetEncoder, ByteBufferAllocator)`
    `SessionOutputBufferImpl(int buffersize, int lineBuffersize, CharsetEncoder charencoder, ByteBufferAllocator allocator)` Creates SessionOutputBufferImpl instance.

  - ### Uses of ByteBufferAllocator in org.apache.http.nio.entity

    Constructors in org.apache.http.nio.entity with parameters of type ByteBufferAllocator
    Constructor and Description
    `BufferingNHttpEntity(HttpEntity httpEntity, ByteBufferAllocator allocator)` Deprecated.
    `SkipContentListener(ByteBufferAllocator allocator)` Deprecated.

  - ### Uses of ByteBufferAllocator in org.apache.http.nio.protocol

    Fields in org.apache.http.nio.protocol declared as ByteBufferAllocator
    Modifier and Type | Field and Description
    --- | ---
    `protected ByteBufferAllocator` | NHttpHandlerBase.`allocator` Deprecated.

    Constructors in org.apache.http.nio.protocol with parameters of type ByteBufferAllocator
    Constructor and Description
    `AsyncNHttpClientHandler(HttpProcessor httpProcessor, NHttpRequestExecutionHandler execHandler, ConnectionReuseStrategy connStrategy, ByteBufferAllocator allocator, HttpParams params)` Deprecated.
    `AsyncNHttpServiceHandler(HttpProcessor httpProcessor, HttpResponseFactory responseFactory, ConnectionReuseStrategy connStrategy, ByteBufferAllocator allocator, HttpParams params)` Deprecated.
    `BufferingHttpClientHandler(HttpProcessor httpProcessor, HttpRequestExecutionHandler execHandler, ConnectionReuseStrategy connStrategy, ByteBufferAllocator allocator, HttpParams params)` Deprecated.
    `BufferingHttpServiceHandler(HttpProcessor httpProcessor, HttpResponseFactory responseFactory, ConnectionReuseStrategy connStrategy, ByteBufferAllocator allocator, HttpParams params)` Deprecated.
    `NHttpHandlerBase(HttpProcessor httpProcessor, ConnectionReuseStrategy connStrategy, ByteBufferAllocator allocator, HttpParams params)` Deprecated.
    `ThrottlingHttpClientHandler(HttpProcessor httpProcessor, HttpRequestExecutionHandler execHandler, ConnectionReuseStrategy connStrategy, ByteBufferAllocator allocator, Executor executor, HttpParams params)` Deprecated.
    `ThrottlingHttpServiceHandler(HttpProcessor httpProcessor, HttpResponseFactory responseFactory, ConnectionReuseStrategy connStrategy, ByteBufferAllocator allocator, Executor executor, HttpParams params)` Deprecated.

  - ### Uses of ByteBufferAllocator in org.apache.http.nio.util

    Classes in org.apache.http.nio.util that implement ByteBufferAllocator
    Modifier and Type | Class and Description
    --- | ---
    `class` | `DirectByteBufferAllocator` Allocates `ByteBuffer` instances using `ByteBuffer.allocateDirect(int)`.
    `class` | `HeapByteBufferAllocator` Allocates `ByteBuffer` instances using `ByteBuffer.allocate(int)`.

    Constructors in org.apache.http.nio.util with parameters of type ByteBufferAllocator
    Constructor and Description
    `ExpandableBuffer(int buffersize, ByteBufferAllocator allocator)` Allocates buffer of the given size using the given allocator.
    `SharedInputBuffer(int buffersize, ByteBufferAllocator allocator)`
    `SharedInputBuffer(int buffersize, IOControl ioctrl, ByteBufferAllocator allocator)` Deprecated. (4.3) use `SharedInputBuffer.SharedInputBuffer(int, ByteBufferAllocator)`
    `SharedOutputBuffer(int buffersize, ByteBufferAllocator allocator)`
    `SharedOutputBuffer(int buffersize, IOControl ioctrl, ByteBufferAllocator allocator)` Deprecated. (4.3) use `SharedOutputBuffer.SharedOutputBuffer(int, ByteBufferAllocator)`
    `SimpleInputBuffer(int buffersize, ByteBufferAllocator allocator)`
    `SimpleOutputBuffer(int buffersize, ByteBufferAllocator allocator)`

Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.