Class Route

java.lang.Object
org.miaixz.bus.http.Route

public class Route extends Object
连接用于到达抽象源服务器的具体路由 在创建连接时,客户机有许多选项 每个路由都是这些选项的特定选择
Since:
Java 17+
Author:
Kimi Liu
  • Constructor Details

  • Method Details

    • address

      public Address address()
    • proxy

      public Proxy proxy()
      Returns the Proxy of this route. Warning: This may disagree with Address.proxy when it is null. When the address's proxy is null, the proxy selector is used.
    • socketAddress

      public InetSocketAddress socketAddress()
    • requiresTunnel

      public boolean requiresTunnel()
      Returns true if this route tunnels HTTPS through an HTTP proxy. See RFC 2817, Section 5.2.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object