## Uses of Interface
org.apache.hc.core5.http.nio.AsyncServerExchangeHandler

- Packages that use AsyncServerExchangeHandler
  Package | Description
  --- | ---
  org.apache.hc.core5.http.impl.bootstrap | HTTP/1.1 requester and server bootstrap.
  org.apache.hc.core5.http.impl.nio | Default implementation of HTTP/1.1 transport based on the asynchronous (non-blocking) I/O model.
  org.apache.hc.core5.http.nio.support | Support classes for the asynchronous I/O model.
  org.apache.hc.core5.http.nio.support.classic | Support classes for the asynchronous I/O model that emulate behavior of the classic (blocking) I/O model.
  org.apache.hc.core5.http2.impl.nio | Default implementation of HTTP/2 transport based on the asynchronous (non-blocking) I/O model.
  org.apache.hc.core5.http2.impl.nio.bootstrap | HTTP/2 capable requester and server bootstrap.
  org.apache.hc.core5.reactive |
  org.apache.hc.core5.testing.nio |

- - ### Uses of AsyncServerExchangeHandler in org.apache.hc.core5.http.impl.bootstrap

    Method parameters in org.apache.hc.core5.http.impl.bootstrap with type arguments of type AsyncServerExchangeHandler
    Modifier and Type | Method and Description
    --- | ---
    `AsyncServerBootstrap` | AsyncServerBootstrap.`register(String hostname, String uriPattern, Supplier<AsyncServerExchangeHandler> supplier)` Registers the given `AsyncServerExchangeHandler` `Supplier` as a handler for URIs matching the given host and pattern.
    `AsyncServerBootstrap` | AsyncServerBootstrap.`register(String uriPattern, Supplier<AsyncServerExchangeHandler> supplier)` Registers the given `AsyncServerExchangeHandler` `Supplier` as a default handler for URIs matching the given pattern.
    `AsyncServerBootstrap` | AsyncServerBootstrap.`registerVirtual(String hostname, String uriPattern, Supplier<AsyncServerExchangeHandler> supplier)` Deprecated. use `AsyncServerBootstrap.register(String, String, Supplier)`.
    `AsyncServerBootstrap` | AsyncServerBootstrap.`setLookupRegistry(LookupRegistry<Supplier<AsyncServerExchangeHandler>> lookupRegistry)` Deprecated. Use `RequestRouter`.
    `AsyncServerBootstrap` | AsyncServerBootstrap.`setRequestRouter(HttpRequestMapper<Supplier<AsyncServerExchangeHandler>> requestRouter)` Sets `HttpRequestMapper` instance.

  - ### Uses of AsyncServerExchangeHandler in org.apache.hc.core5.http.impl.nio

    Constructor parameters in org.apache.hc.core5.http.impl.nio with type arguments of type AsyncServerExchangeHandler
    Constructor and Description
    `ServerHttp1StreamDuplexer(ProtocolIOSession ioSession, HttpProcessor httpProcessor, HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory, String scheme, Http1Config http1Config, CharCodingConfig charCodingConfig, ConnectionReuseStrategy connectionReuseStrategy, NHttpMessageParser<HttpRequest> incomingMessageParser, NHttpMessageWriter<HttpResponse> outgoingMessageWriter, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, Http1StreamListener streamListener)`
    `ServerHttp1StreamDuplexerFactory(HttpProcessor httpProcessor, HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory, Http1Config http1Config, CharCodingConfig charCodingConfig, ConnectionReuseStrategy connectionReuseStrategy, NHttpMessageParserFactory<HttpRequest> requestParserFactory, NHttpMessageWriterFactory<HttpResponse> responseWriterFactory, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, Http1StreamListener streamListener)`
    `ServerHttp1StreamDuplexerFactory(HttpProcessor httpProcessor, HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory, Http1Config http1Config, CharCodingConfig charCodingConfig, ConnectionReuseStrategy connectionReuseStrategy, NHttpMessageParserFactory<HttpRequest> requestParserFactory, NHttpMessageWriterFactory<HttpResponse> responseWriterFactory, Http1StreamListener streamListener)`
    `ServerHttp1StreamDuplexerFactory(HttpProcessor httpProcessor, HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory, Http1Config http1Config, CharCodingConfig charCodingConfig, Http1StreamListener streamListener)`

  - ### Uses of AsyncServerExchangeHandler in org.apache.hc.core5.http.nio.support

    Classes in org.apache.hc.core5.http.nio.support that implement AsyncServerExchangeHandler
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AbstractServerExchangeHandler<T>` Abstract server side message exchange handler.
    `class` | `BasicAsyncServerExpectationDecorator` `AsyncServerExchangeHandler` implementation that adds support for the Expect-Continue handshake to an existing `AsyncServerExchangeHandler`.
    `class` | `BasicServerExchangeHandler<T>` Basic `AbstractServerExchangeHandler` implementation that delegates request processing and response generation to a `AsyncServerRequestHandler`.
    `class` | `ImmediateResponseExchangeHandler` `AsyncServerExchangeHandler` implementation that immediately responds with a predefined response generated by a `AsyncResponseProducer` and ignores any entity content enclosed in the request message.

    Methods in org.apache.hc.core5.http.nio.support that return AsyncServerExchangeHandler
    Modifier and Type | Method and Description
    --- | ---
    `AsyncServerExchangeHandler` | DefaultAsyncResponseExchangeHandlerFactory.`create(HttpRequest request, HttpContext context)`
    `AsyncServerExchangeHandler` | AsyncServerFilterChainExchangeHandlerFactory.`create(HttpRequest request, HttpContext context)`

    Constructors in org.apache.hc.core5.http.nio.support with parameters of type AsyncServerExchangeHandler
    Constructor and Description
    `BasicAsyncServerExpectationDecorator(AsyncServerExchangeHandler handler)`
    `BasicAsyncServerExpectationDecorator(AsyncServerExchangeHandler handler, Callback<Exception> exceptionCallback)`

    Constructor parameters in org.apache.hc.core5.http.nio.support with type arguments of type AsyncServerExchangeHandler
    Constructor and Description
    `DefaultAsyncResponseExchangeHandlerFactory(HttpRequestMapper<Supplier<AsyncServerExchangeHandler>> mapper)`
    `DefaultAsyncResponseExchangeHandlerFactory(HttpRequestMapper<Supplier<AsyncServerExchangeHandler>> mapper, Decorator<AsyncServerExchangeHandler> decorator)`
    `DefaultAsyncResponseExchangeHandlerFactory(HttpRequestMapper<Supplier<AsyncServerExchangeHandler>> mapper, Decorator<AsyncServerExchangeHandler> decorator)`
    `TerminalAsyncServerFilter(HandlerFactory<AsyncServerExchangeHandler> handlerFactory)`

  - ### Uses of AsyncServerExchangeHandler in org.apache.hc.core5.http.nio.support.classic

    Classes in org.apache.hc.core5.http.nio.support.classic that implement AsyncServerExchangeHandler
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AbstractClassicServerExchangeHandler` `AsyncServerExchangeHandler` implementation that acts as a compatibility layer for classic `InputStream` / `OutputStream` based interfaces.

  - ### Uses of AsyncServerExchangeHandler in org.apache.hc.core5.http2.impl.nio

    Constructor parameters in org.apache.hc.core5.http2.impl.nio with type arguments of type AsyncServerExchangeHandler
    Constructor and Description
    `ServerH2StreamMultiplexer(ProtocolIOSession ioSession, FrameFactory frameFactory, HttpProcessor httpProcessor, HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory, CharCodingConfig charCodingConfig, H2Config h2Config, H2StreamListener streamListener)`
    `ServerH2StreamMultiplexer(ProtocolIOSession ioSession, HttpProcessor httpProcessor, HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory, CharCodingConfig charCodingConfig, H2Config h2Config)`
    `ServerH2StreamMultiplexerFactory(HttpProcessor httpProcessor, HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory, H2Config h2Config, CharCodingConfig charCodingConfig, H2StreamListener streamListener)`

  - ### Uses of AsyncServerExchangeHandler in org.apache.hc.core5.http2.impl.nio.bootstrap

    Method parameters in org.apache.hc.core5.http2.impl.nio.bootstrap with type arguments of type AsyncServerExchangeHandler
    Modifier and Type | Method and Description
    --- | ---
    `H2ServerBootstrap` | H2ServerBootstrap.`register(String hostname, String uriPattern, Supplier<AsyncServerExchangeHandler> supplier)` Registers the given `AsyncServerExchangeHandler` `Supplier` as a handler for URIs matching the given host and the pattern.
    `H2ServerBootstrap` | H2ServerBootstrap.`register(String uriPattern, Supplier<AsyncServerExchangeHandler> supplier)` Registers the given `AsyncServerExchangeHandler` `Supplier` as a default handler for URIs matching the given pattern.
    `H2ServerBootstrap` | H2ServerBootstrap.`registerVirtual(String hostname, String uriPattern, Supplier<AsyncServerExchangeHandler> supplier)` Deprecated. Use `H2ServerBootstrap.register(String, String, Supplier)`.
    `H2ServerBootstrap` | H2ServerBootstrap.`setLookupRegistry(LookupRegistry<Supplier<AsyncServerExchangeHandler>> lookupRegistry)` Deprecated. Use `RequestRouter`.
    `H2ServerBootstrap` | H2ServerBootstrap.`setRequestRouter(HttpRequestMapper<Supplier<AsyncServerExchangeHandler>> requestRouter)` Sets `HttpRequestMapper` instance.

  - ### Uses of AsyncServerExchangeHandler in org.apache.hc.core5.reactive

    Classes in org.apache.hc.core5.reactive that implement AsyncServerExchangeHandler
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ReactiveServerExchangeHandler` An implementation of `AsyncServerExchangeHandler` designed to work with reactive streams.

  - ### Uses of AsyncServerExchangeHandler in org.apache.hc.core5.testing.nio

    Method parameters in org.apache.hc.core5.testing.nio with type arguments of type AsyncServerExchangeHandler
    Modifier and Type | Method and Description
    --- | ---
    `void` | Http1TestServer.`configure(Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator)`
    `void` | H2TestServer.`configure(Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator)`
    `void` | Http1TestServer.`register(String uriPattern, Supplier<AsyncServerExchangeHandler> supplier)`
    `void` | H2TestServer.`register(String uriPattern, Supplier<AsyncServerExchangeHandler> supplier)`
    `InetSocketAddress` | H2TestServer.`start(HttpProcessor httpProcessor, Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator, H2Config h2Config)` Deprecated. Use `H2TestServer.configure(H2Config)`, `H2TestServer.configure(HttpProcessor)`, `H2TestServer.configure(Decorator)`, `H2TestServer.start()`.
    `InetSocketAddress` | Http1TestServer.`start(HttpProcessor httpProcessor, Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator, Http1Config http1Config)` Deprecated. Use `Http1TestServer.configure(Http1Config)`, `Http1TestServer.configure(HttpProcessor)`, `Http1TestServer.configure(Decorator)`, `Http1TestServer.start()`.
    `InetSocketAddress` | H2TestServer.`start(HttpProcessor httpProcessor, Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator, Http1Config http1Config)` Deprecated. Use `H2TestServer.configure(Http1Config)`, `H2TestServer.configure(HttpProcessor)`, `H2TestServer.configure(Decorator)`, `H2TestServer.start()`.

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