| Modifier and Type | Method and Description | 
|---|---|
| static ProtocolNegotiator | ProtocolNegotiators. httpProxy(SocketAddress proxyAddress,
         String proxyUsername,
         String proxyPassword,
         ProtocolNegotiator negotiator)Returns a  ProtocolNegotiatorthat does HTTP CONNECT proxy negotiation. | 
| static ProtocolNegotiator | ProtocolNegotiators. plaintext()Returns a  ChannelHandlerthat ensures that thehandleris added to the
 pipeline writes to theChannelmay happen immediately, even before it
 is active. | 
| static ProtocolNegotiator | ProtocolNegotiators. plaintextUpgrade()Returns a  ProtocolNegotiatorused for upgrading to HTTP/2 from HTTP/1.x. | 
| static ProtocolNegotiator | ProtocolNegotiators. serverPlaintext()Create a server plaintext handler for gRPC. | 
| static ProtocolNegotiator | ProtocolNegotiators. serverTls(io.netty.handler.ssl.SslContext sslContext)Create a server TLS handler for HTTP/2 capable of using ALPN/NPN. | 
| static ProtocolNegotiator | ProtocolNegotiators. tls(io.netty.handler.ssl.SslContext sslContext)Returns a  ProtocolNegotiatorthat ensures the pipeline is set up so that TLS will
 be negotiated, thehandleris added and writes to theChannelmay happen immediately, even before the TLS Handshake is complete. | 
| Modifier and Type | Method and Description | 
|---|---|
| static ProtocolNegotiator | ProtocolNegotiators. httpProxy(SocketAddress proxyAddress,
         String proxyUsername,
         String proxyPassword,
         ProtocolNegotiator negotiator)Returns a  ProtocolNegotiatorthat does HTTP CONNECT proxy negotiation. | 
| NettyServerBuilder | NettyServerBuilder. protocolNegotiator(ProtocolNegotiator protocolNegotiator)Sets the  ProtocolNegotiatorto be used. |