Example usage for org.apache.http.nio.protocol AsyncNHttpServiceHandler AsyncNHttpServiceHandler

List of usage examples for org.apache.http.nio.protocol AsyncNHttpServiceHandler AsyncNHttpServiceHandler

Introduction

In this page you can find the example usage for org.apache.http.nio.protocol AsyncNHttpServiceHandler AsyncNHttpServiceHandler.

Prototype

public AsyncNHttpServiceHandler(final HttpProcessor httpProcessor, final HttpResponseFactory responseFactory,
            final ConnectionReuseStrategy connStrategy, final ByteBufferAllocator allocator,
            final HttpParams params) 

Source Link

Usage

From source file:com.zotoh.maedr.device.apache.StreamedHttpServiceHandler.java

/**
 * @param httpProcessor/*  ww  w  .  jav a2 s  .  co m*/
 * @param responseFactory
 * @param connStrategy
 * @param allocator
 * @param params
 */
public StreamedHttpServiceHandler(final HttpProcessor httpProcessor, final HttpResponseFactory responseFactory,
        final ConnectionReuseStrategy connStrategy, final ByteBufferAllocator allocator,
        final HttpParams params) {
    this.asyncHandler = new AsyncNHttpServiceHandler(httpProcessor, responseFactory, connStrategy, allocator,
            params);
    this.asyncHandler.setHandlerResolver(new RequestHandlerResolverAdaptor());
}