类 OptionalTlsProtocolNegotiator

  • 所有已实现的接口:
    io.grpc.netty.shaded.io.grpc.netty.InternalProtocolNegotiator.ProtocolNegotiator

    public class OptionalTlsProtocolNegotiator
    extends java.lang.Object
    implements io.grpc.netty.shaded.io.grpc.netty.InternalProtocolNegotiator.ProtocolNegotiator
    support the tls and plain protocol one the same port.
    作者:
    githubcheng2978.
    • 嵌套类概要

      嵌套类 
      修饰符和类型 说明
      class  OptionalTlsProtocolNegotiator.PortUnificationServerHandler  
      static interface  io.grpc.netty.shaded.io.grpc.netty.ProtocolNegotiator.ClientFactory  
      static interface  io.grpc.netty.shaded.io.grpc.netty.ProtocolNegotiator.ServerFactory  
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      private static int MAGIC_VALUE  
      private io.grpc.netty.shaded.io.netty.handler.ssl.SslContext sslContext  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void close()  
      private io.grpc.netty.shaded.io.grpc.netty.ProtocolNegotiationEvent getDefPne()  
      io.grpc.netty.shaded.io.netty.channel.ChannelHandler newHandler​(io.grpc.netty.shaded.io.grpc.netty.GrpcHttp2ConnectionHandler grpcHttp2ConnectionHandler)  
      io.grpc.netty.shaded.io.netty.util.AsciiString scheme()  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • MAGIC_VALUE

        private static final int MAGIC_VALUE
        另请参阅:
        常量字段值
      • sslContext

        private io.grpc.netty.shaded.io.netty.handler.ssl.SslContext sslContext
    • 构造器详细资料

      • OptionalTlsProtocolNegotiator

        public OptionalTlsProtocolNegotiator​(io.grpc.netty.shaded.io.netty.handler.ssl.SslContext sslContext)
    • 方法详细资料

      • scheme

        public io.grpc.netty.shaded.io.netty.util.AsciiString scheme()
      • newHandler

        public io.grpc.netty.shaded.io.netty.channel.ChannelHandler newHandler​(io.grpc.netty.shaded.io.grpc.netty.GrpcHttp2ConnectionHandler grpcHttp2ConnectionHandler)
      • close

        public void close()
      • getDefPne

        private io.grpc.netty.shaded.io.grpc.netty.ProtocolNegotiationEvent getDefPne()