Class HttpClientTransportOverHTTP2

    • Constructor Detail

      • HttpClientTransportOverHTTP2

        public HttpClientTransportOverHTTP2​(HTTP2Client client)
    • Method Detail

      • isUseALPN

        @ManagedAttribute("Whether ALPN should be used when establishing connections")
        public boolean isUseALPN()
      • setUseALPN

        public void setUseALPN​(boolean useALPN)
      • doStart

        protected void doStart()
                        throws java.lang.Exception
        Description copied from class: ContainerLifeCycle
        Starts the managed lifecycle beans in the order they were added.
        Overrides:
        doStart in class ContainerLifeCycle
        Throws:
        java.lang.Exception
      • doStop

        protected void doStop()
                       throws java.lang.Exception
        Description copied from class: ContainerLifeCycle
        Stops the managed lifecycle beans in the reverse order they were added.
        Overrides:
        doStop in class ContainerLifeCycle
        Throws:
        java.lang.Exception
      • newHttpDestination

        public HttpDestination newHttpDestination​(Origin origin)
        Description copied from interface: HttpClientTransport
        Creates a new, transport-specific, HttpDestination object.

        HttpDestination controls the destination-connection cardinality: protocols like HTTP have 1-N cardinality, while multiplexed protocols like HTTP/2 have a 1-1 cardinality.

        Parameters:
        origin - the destination origin
        Returns:
        a new, transport-specific, HttpDestination object
      • connect

        public void connect​(java.net.InetSocketAddress address,
                            java.util.Map<java.lang.String,​java.lang.Object> context)
        Description copied from interface: HttpClientTransport
        Establishes a physical connection to the given address.
        Parameters:
        address - the address to connect to
        context - the context information to establish the connection
      • newConnection

        public Connection newConnection​(EndPoint endPoint,
                                        java.util.Map<java.lang.String,​java.lang.Object> context)
                                 throws java.io.IOException
        Parameters:
        endPoint - the EndPoint to link the newly created connection to
        context - the context data to create the connection
        Returns:
        a new Connection
        Throws:
        java.io.IOException - if the connection cannot be created