## Uses of Interface
org.apache.hc.core5.reactor.ProtocolUpgradeHandler

- Packages that use ProtocolUpgradeHandler
  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.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.http2.ssl | HTTP/2 specific TLS protocol support.
  org.apache.hc.core5.reactor | Event driven network communication APIs and components loosely based on Doug Lea's reactor pattern.

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

    Constructor parameters in org.apache.hc.core5.http.impl.bootstrap with type arguments of type ProtocolUpgradeHandler
    Constructor and Description
    `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.

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

    Constructor parameters in org.apache.hc.core5.http.impl.nio with type arguments of type ProtocolUpgradeHandler
    Constructor and Description
    `ClientHttp1StreamDuplexer(ProtocolIOSession ioSession, HttpProcessor httpProcessor, Http1Config http1Config, CharCodingConfig charCodingConfig, ConnectionReuseStrategy connectionReuseStrategy, NHttpMessageParser<HttpResponse> incomingMessageParser, NHttpMessageWriter<HttpRequest> outgoingMessageWriter, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, Lookup<ProtocolUpgradeHandler> protocolUpgradeHandlerLookup, Http1StreamListener streamListener)`
    `ClientHttp1StreamDuplexerFactory(HttpProcessor httpProcessor, Http1Config http1Config, CharCodingConfig charCodingConfig, ConnectionReuseStrategy connectionReuseStrategy, NHttpMessageParserFactory<HttpResponse> responseParserFactory, NHttpMessageWriterFactory<HttpRequest> requestWriterFactory, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, Lookup<ProtocolUpgradeHandler> protocolUpgradeHandlerLookup, Http1StreamListener streamListener)`
    `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, Lookup<ProtocolUpgradeHandler> protocolUpgradeHandlerLookup, Http1StreamListener streamListener)`
    `ServerHttp1StreamDuplexerFactory(HttpProcessor httpProcessor, HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory, Http1Config http1Config, CharCodingConfig charCodingConfig, ConnectionReuseStrategy connectionReuseStrategy, NHttpMessageParserFactory<HttpRequest> requestParserFactory, NHttpMessageWriterFactory<HttpResponse> responseWriterFactory, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, Lookup<ProtocolUpgradeHandler> protocolUpgradeHandlerLookup, Http1StreamListener streamListener)`

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

    Classes in org.apache.hc.core5.http2.impl.nio that implement ProtocolUpgradeHandler
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ClientH2UpgradeHandler` Protocol upgrade handler that upgrades the underlying `ProtocolIOSession` to HTTP/2 in case of a successful protocol negotiation.
    `class` | `ServerH2UpgradeHandler` Protocol upgrade handler that upgrades the underlying `ProtocolIOSession` to HTTP/2 in case of a successful protocol negotiation.

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

    Constructor parameters in org.apache.hc.core5.http2.impl.nio.bootstrap with type arguments of type ProtocolUpgradeHandler
    Constructor and Description
    `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.

  - ### Uses of ProtocolUpgradeHandler in org.apache.hc.core5.http2.ssl

    Classes in org.apache.hc.core5.http2.ssl that implement ProtocolUpgradeHandler
    Modifier and Type | Class and Description
    --- | ---
    `class` | `TlsUpgradeHandler` Protocol upgrade handler that upgrades the underlying `ProtocolIOSession` to TLS using `TlsStrategy`.

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

    Methods in org.apache.hc.core5.reactor with parameters of type ProtocolUpgradeHandler
    Modifier and Type | Method and Description
    --- | ---
    `void` | ProtocolLayer.`upgrade(ProtocolUpgradeHandler handler, EndpointParameters parameters)` Switches to the given application protocol.

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