Class HttpDestination

    • Constructor Detail

      • HttpDestination

        public HttpDestination​(HttpClient client,
                               Origin origin)
        Deprecated.
    • Method Detail

      • isSecure

        public boolean isSecure()
        Deprecated.
      • getHttpClient

        public HttpClient getHttpClient()
        Deprecated.
      • getOrigin

        public Origin getOrigin()
        Deprecated.
      • getRequestNotifier

        public RequestNotifier getRequestNotifier()
        Deprecated.
      • getResponseNotifier

        public ResponseNotifier getResponseNotifier()
        Deprecated.
      • getConnectAddress

        public Origin.Address getConnectAddress()
        Deprecated.
      • getHostField

        public HttpField getHostField()
        Deprecated.
      • failed

        public void failed​(Throwable x)
        Deprecated.
        Description copied from interface: Callback

        Callback invoked when the operation fails.

        Specified by:
        failed in interface Callback
        Parameters:
        x - the reason for the operation failure
      • send

        public void send​(HttpExchange exchange)
        Deprecated.
      • send

        public void send()
        Deprecated.
      • newConnection

        public void newConnection​(Promise<Connection> promise)
        Deprecated.
        Description copied from interface: Destination
        Creates asynchronously a new, unpooled, Connection that will be returned at a later time through the given Promise.

        Use FuturePromise to wait for the connection:

         Destination destination = ...;
         FuturePromise<Connection> futureConnection = new FuturePromise<>();
         destination.newConnection(futureConnection);
         Connection connection = futureConnection.get(5, TimeUnit.SECONDS);
         
        Specified by:
        newConnection in interface Destination
        Parameters:
        promise - the promise of a new, unpooled, Connection
      • remove

        public boolean remove​(HttpExchange exchange)
        Deprecated.
      • release

        public void release​(Connection connection)
        Deprecated.
      • remove

        public boolean remove​(Connection connection)
        Deprecated.
      • abort

        public void abort​(Throwable cause)
        Deprecated.
        Aborts all the HttpExchanges queued in this destination.
        Parameters:
        cause - the abort cause
      • dump

        public void dump​(Appendable out,
                         String indent)
                  throws IOException
        Deprecated.
        Description copied from interface: Dumpable
        Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.
        Specified by:
        dump in interface Dumpable
        Overrides:
        dump in class ContainerLifeCycle
        Parameters:
        out - The appendable to dump to
        indent - The indent to apply after any new lines.
        Throws:
        IOException - if unable to write to Appendable
      • asString

        public String asString()
        Deprecated.