@Contract(threading=STATELESS) public class DefaultSchemePortResolver extends Object implements SchemePortResolver
SchemePortResolver
.Modifier and Type | Field and Description |
---|---|
static DefaultSchemePortResolver |
INSTANCE |
Constructor and Description |
---|
DefaultSchemePortResolver() |
Modifier and Type | Method and Description |
---|---|
int |
resolve(org.apache.hc.core5.http.HttpHost host)
Returns the actual port for the host based on the protocol scheme.
|
int |
resolve(String scheme,
org.apache.hc.core5.net.NamedEndpoint endpoint)
Returns the actual port for the host based on the protocol scheme.
|
public static final DefaultSchemePortResolver INSTANCE
public int resolve(org.apache.hc.core5.http.HttpHost host)
SchemePortResolver
resolve
in interface SchemePortResolver
public int resolve(String scheme, org.apache.hc.core5.net.NamedEndpoint endpoint)
SchemePortResolver
resolve
in interface SchemePortResolver
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.