Class HttpClientTransportOverFCGI

    • Constructor Detail

      • HttpClientTransportOverFCGI

        public HttpClientTransportOverFCGI​(java.lang.String scriptRoot)
      • HttpClientTransportOverFCGI

        public HttpClientTransportOverFCGI​(int selectors,
                                           java.lang.String scriptRoot)
      • HttpClientTransportOverFCGI

        public HttpClientTransportOverFCGI​(ClientConnector connector,
                                           java.lang.String scriptRoot)
    • Method Detail

      • newOrigin

        public Origin newOrigin​(HttpRequest request)
        Description copied from interface: HttpClientTransport
        Creates a new Origin with the given request.
        Parameters:
        request - the request that triggers the creation of the Origin
        Returns:
        an Origin that identifies a destination
      • 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
      • 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