Top Description Fields Constructors Methods
org.apache.hc.client5.http.impl

public Class DefaultSchemePortResolver

extends Object
implements SchemePortResolver
Class Inheritance
All Implemented Interfaces
org.apache.hc.client5.http.SchemePortResolver
Annotations
@Contract
threading:STATELESS
Imports
org.apache.hc.client5.http.SchemePortResolver, org.apache.hc.core5.annotation.Contract, .ThreadingBehavior, org.apache.hc.core5.http.HttpHost, .URIScheme, org.apache.hc.core5.net.NamedEndpoint, org.apache.hc.core5.util.Args

Default SchemePortResolver.
Since
4.3

Field Summary

Modifier and TypeField and Description
public static final DefaultSchemePortResolver

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
resolve(final HttpHost host)

Implements org.apache.hc.client5.http.SchemePortResolver.resolve.

Returns the actual port for the host based on the protocol scheme.
public int
resolve(final String scheme, final NamedEndpoint endpoint)

Overrides default org.apache.hc.client5.http.SchemePortResolver.resolve.

Returns the actual port for the host based on the protocol scheme.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final DefaultSchemePortResolver INSTANCE

Constructor Detail

DefaultSchemePortResolverback to summary
public DefaultSchemePortResolver()

Method Detail

resolveback to summary
public int resolve(final HttpHost host)

Implements org.apache.hc.client5.http.SchemePortResolver.resolve.

Doc from org.apache.hc.client5.http.SchemePortResolver.resolve.

Returns the actual port for the host based on the protocol scheme.

Annotations
@Override
resolveback to summary
public int resolve(final String scheme, final NamedEndpoint endpoint)

Overrides default org.apache.hc.client5.http.SchemePortResolver.resolve.

Doc from org.apache.hc.client5.http.SchemePortResolver.resolve.

Returns the actual port for the host based on the protocol scheme.

Annotations
@Override