Class ResolvedClientTarget

java.lang.Object
io.helidon.webclient.api.ResolvedClientTarget

public final class ResolvedClientTarget extends Object
Concrete physical WebClient transport target for one new connection attempt.

Logical HTTP and TLS identity remains in logicalTarget(); the concrete peer is routing data only.

  • Method Details

    • logicalTarget

      public ClientConnectionTarget logicalTarget()
      Logical connection target and identity.
      Returns:
      logical target
    • routeAuthority

      public UriAuthority routeAuthority()
      Selected direct or alternative route authority.
      Returns:
      route authority
    • peerAddress

      public InetSocketAddress peerAddress()
      Concrete socket peer. This is the route peer for a direct connection and the proxy peer for a proxied connection.
      Returns:
      concrete peer
    • destinationAddress

      public InetSocketAddress destinationAddress()
      Logical destination supplied to a proxy tunnel. The address is resolved locally for a system SOCKS route to preserve WebClient's existing SOCKS behavior, because the selected SOCKS version is not available through the standard proxy API.
      Returns:
      logical destination address
    • proxyRoute

      public ProxyRoute proxyRoute()
      Effective proxy route.
      Returns:
      proxy route
    • localAddress

      public Optional<InetSocketAddress> localAddress()
      Optional requested local bind address.
      Returns:
      local bind address
    • tlsGeneration

      public long tlsGeneration()
      Captured TLS reload generation.
      Returns:
      TLS generation
    • networkGeneration

      public long networkGeneration()
      Network or discovery generation for this physical attempt.
      Returns:
      network generation
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object