Interface SchemePortResolver

All Known Implementing Classes:
DefaultSchemePortResolver

@Contract(threading=STATELESS) public interface SchemePortResolver
Strategy for default port resolution for protocol schemes.
Since:
4.3
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    resolve(String scheme, org.apache.hc.core5.net.NamedEndpoint endpoint)
    Returns the actual port for the host based on the protocol scheme.
    int
    resolve(org.apache.hc.core5.http.HttpHost host)
    Returns the actual port for the host based on the protocol scheme.
  • Method Details

    • resolve

      int resolve(org.apache.hc.core5.http.HttpHost host)
      Returns the actual port for the host based on the protocol scheme.
    • resolve

      default int resolve(String scheme, org.apache.hc.core5.net.NamedEndpoint endpoint)
      Returns the actual port for the host based on the protocol scheme.
      Since:
      5.2