## Uses of Interface
org.apache.hc.core5.function.Decorator

- Packages that use Decorator
  Package | Description
  --- | ---
  org.apache.hc.core5.http.impl.bootstrap | HTTP/1.1 requester and server bootstrap.
  org.apache.hc.core5.http.nio.support | Support classes for the asynchronous I/O model.
  org.apache.hc.core5.http2.impl.nio.bootstrap | HTTP/2 capable requester and server bootstrap.
  org.apache.hc.core5.reactor | Event driven network communication APIs and components loosely based on Doug Lea's reactor pattern.
  org.apache.hc.core5.testing.classic |
  org.apache.hc.core5.testing.nio |

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

    Methods in org.apache.hc.core5.http.impl.bootstrap with parameters of type Decorator
    Modifier and Type | Method and Description
    --- | ---
    `AsyncServerBootstrap` | AsyncServerBootstrap.`setIOSessionDecorator(Decorator<IOSession> ioSessionDecorator)` Assigns `IOSession` `Decorator` instance.
    `AsyncRequesterBootstrap` | AsyncRequesterBootstrap.`setIOSessionDecorator(Decorator<IOSession> ioSessionDecorator)` Assigns `IOSession` `Decorator` instance.

    Constructors in org.apache.hc.core5.http.impl.bootstrap with parameters of type Decorator
    Constructor and Description
    `AsyncRequester(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, Callback<IOSession> sessionShutdownCallback, Resolver<HttpHost,InetSocketAddress> addressResolver)`
    `AsyncServer(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, Callback<IOSession> sessionShutdownCallback)`
    `HttpAsyncRequester(IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, ManagedConnPool<HttpHost,IOSession> connPool)` Use `AsyncRequesterBootstrap` to create instances of this class.
    `HttpAsyncRequester(IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, ManagedConnPool<HttpHost,IOSession> connPool, Lookup<ProtocolUpgradeHandler> protocolUpgradeHandlerLookup)` Use `AsyncRequesterBootstrap` to create instances of this class.
    `HttpAsyncServer(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener)` Use `AsyncServerBootstrap` to create instances of this class.
    `HttpAsyncServer(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, String canonicalName)` Use `AsyncServerBootstrap` to create instances of this class.

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

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

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

    Methods in org.apache.hc.core5.http2.impl.nio.bootstrap with parameters of type Decorator
    Modifier and Type | Method and Description
    --- | ---
    `H2ServerBootstrap` | H2ServerBootstrap.`setIOSessionDecorator(Decorator<IOSession> ioSessionDecorator)` Assigns `IOSession` `Decorator` instance.
    `H2RequesterBootstrap` | H2RequesterBootstrap.`setIOSessionDecorator(Decorator<IOSession> ioSessionDecorator)` Assigns `IOSession` `Decorator` instance.
    `H2MultiplexingRequesterBootstrap` | H2MultiplexingRequesterBootstrap.`setIOSessionDecorator(Decorator<IOSession> ioSessionDecorator)` Assigns `IOSession` `Decorator` instance.

    Constructors in org.apache.hc.core5.http2.impl.nio.bootstrap with parameters of type Decorator
    Constructor and Description
    `H2AsyncRequester(HttpVersionPolicy versionPolicy, IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, ManagedConnPool<HttpHost,IOSession> connPool)` Use `H2RequesterBootstrap` to create instances of this class.
    `H2AsyncRequester(HttpVersionPolicy versionPolicy, IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, ManagedConnPool<HttpHost,IOSession> connPool, Lookup<ProtocolUpgradeHandler> protocolUpgradeHandlerLookup)` Use `H2RequesterBootstrap` to create instances of this class.
    `H2MultiplexingRequester(IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, Resolver<HttpHost,InetSocketAddress> addressResolver, TlsStrategy tlsStrategy)` Use `H2MultiplexingRequesterBootstrap` to create instances of this class.

  - ### Uses of Decorator in org.apache.hc.core5.reactor

    Constructors in org.apache.hc.core5.reactor with parameters of type Decorator
    Constructor and Description
    `DefaultConnectingIOReactor(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, ThreadFactory threadFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, Callback<IOSession> sessionShutdownCallback)`
    `DefaultListeningIOReactor(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, ThreadFactory dispatchThreadFactory, ThreadFactory listenerThreadFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, Callback<IOSession> sessionShutdownCallback)` Creates an instance of DefaultListeningIOReactor with the given configuration.

  - ### Uses of Decorator in org.apache.hc.core5.testing.classic

    Methods in org.apache.hc.core5.testing.classic with parameters of type Decorator
    Modifier and Type | Method and Description
    --- | ---
    `void` | ClassicTestServer.`start(Http1Config http1Config, HttpProcessor httpProcessor, Decorator<HttpServerRequestHandler> handlerDecorator)`

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

    Classes in org.apache.hc.core5.testing.nio that implement Decorator
    Modifier and Type | Class and Description
    --- | ---
    `class` | `LoggingIOSessionDecorator`

    Methods in org.apache.hc.core5.testing.nio with parameters of type Decorator
    Modifier and Type | Method and Description
    --- | ---
    `InetSocketAddress` | H2TestServer.`start(HttpProcessor httpProcessor, Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator, H2Config h2Config)`
    `InetSocketAddress` | Http1TestServer.`start(HttpProcessor httpProcessor, Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator, Http1Config http1Config)`
    `InetSocketAddress` | H2TestServer.`start(HttpProcessor httpProcessor, Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator, Http1Config http1Config)`

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