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.
      • getHttpExchanges

        public java.util.Queue<HttpExchange> getHttpExchanges()
        Deprecated.
      • getRequestNotifier

        public RequestNotifier getRequestNotifier()
        Deprecated.
      • getResponseNotifier

        public ResponseNotifier getResponseNotifier()
        Deprecated.
      • getHost

        @ManagedAttribute(value="The destination host",
                          readonly=true)
        public java.lang.String getHost()
        Deprecated.
        Specified by:
        getHost in interface Destination
        Returns:
        the host of this destination, such as "127.0.0.1" or "google.com"
      • getConnectAddress

        public Origin.Address getConnectAddress()
        Deprecated.
      • getHostField

        public HttpField getHostField()
        Deprecated.
      • failed

        public void failed​(java.lang.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.
      • close

        public void close()
        Deprecated.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • release

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

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

        @Deprecated
        public void close​(Connection connection)
        Deprecated.
        use remove(Connection) instead
        Parameters:
        connection - the connection to remove
      • abort

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

        public void dump​(java.lang.Appendable out,
                         java.lang.String indent)
                  throws java.io.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:
        java.io.IOException - if unable to write to Appendable
      • asString

        public java.lang.String asString()
        Deprecated.