Modifier and Type | Method and Description |
---|---|
static ProtocolNegotiator |
ProtocolNegotiators.httpProxy(SocketAddress proxyAddress,
String proxyUsername,
String proxyPassword,
ProtocolNegotiator negotiator)
Returns a
ProtocolNegotiator that does HTTP CONNECT proxy negotiation. |
static ProtocolNegotiator |
ProtocolNegotiators.plaintext()
Returns a
ChannelHandler that ensures that the handler is added to the
pipeline writes to the Channel may happen immediately, even before it
is active. |
static ProtocolNegotiator |
ProtocolNegotiators.plaintextUpgrade()
Returns a
ProtocolNegotiator used for upgrading to HTTP/2 from HTTP/1.x. |
static ProtocolNegotiator |
ProtocolNegotiators.serverPlaintext()
Create a server plaintext handler for gRPC.
|
static ProtocolNegotiator |
ProtocolNegotiators.serverTls(SslContext sslContext)
Create a server TLS handler for HTTP/2 capable of using ALPN/NPN.
|
static ProtocolNegotiator |
ProtocolNegotiators.tls(SslContext sslContext,
String authority)
Returns a
ProtocolNegotiator that ensures the pipeline is set up so that TLS will
be negotiated, the handler is added and writes to the Channel
may 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
ProtocolNegotiator that does HTTP CONNECT proxy negotiation. |
NettyServerBuilder |
NettyServerBuilder.protocolNegotiator(ProtocolNegotiator protocolNegotiator)
Sets the
ProtocolNegotiator to be used. |