Correct typo in class name 'MultihomeConnectionInitiator'

This class was erronously named 'MultuhomeConnectionInitiator'
This commit is contained in:
Michael Osipov 2019-12-15 10:59:43 +01:00
parent 846a25561c
commit 41a7f5f718
3 changed files with 6 additions and 6 deletions

View File

@ -65,7 +65,7 @@ import org.apache.hc.client5.http.impl.auth.KerberosSchemeFactory;
import org.apache.hc.client5.http.impl.auth.NTLMSchemeFactory;
import org.apache.hc.client5.http.impl.auth.SPNegoSchemeFactory;
import org.apache.hc.client5.http.impl.auth.SystemDefaultCredentialsProvider;
import org.apache.hc.client5.http.impl.nio.MultuhomeConnectionInitiator;
import org.apache.hc.client5.http.impl.nio.MultihomeConnectionInitiator;
import org.apache.hc.client5.http.impl.routing.DefaultRoutePlanner;
import org.apache.hc.client5.http.protocol.RedirectStrategy;
import org.apache.hc.client5.http.protocol.RequestAddCookies;
@ -800,7 +800,7 @@ public class H2AsyncClientBuilder {
}
}
final MultuhomeConnectionInitiator connectionInitiator = new MultuhomeConnectionInitiator(ioReactor, dnsResolver);
final MultihomeConnectionInitiator connectionInitiator = new MultihomeConnectionInitiator(ioReactor, dnsResolver);
final H2ConnPool connPool = new H2ConnPool(connectionInitiator, new Resolver<HttpHost, InetSocketAddress>() {
@Override

View File

@ -39,7 +39,7 @@ import org.apache.hc.client5.http.config.RequestConfig;
import org.apache.hc.client5.http.impl.ConnPoolSupport;
import org.apache.hc.client5.http.impl.ExecSupport;
import org.apache.hc.client5.http.impl.classic.RequestFailedException;
import org.apache.hc.client5.http.impl.nio.MultuhomeConnectionInitiator;
import org.apache.hc.client5.http.impl.nio.MultihomeConnectionInitiator;
import org.apache.hc.client5.http.protocol.HttpClientContext;
import org.apache.hc.core5.annotation.Contract;
import org.apache.hc.core5.annotation.ThreadingBehavior;
@ -118,7 +118,7 @@ public final class MinimalH2AsyncClient extends AbstractMinimalHttpAsyncClientBa
}),
pushConsumerRegistry,
threadFactory);
this.connectionInitiator = new MultuhomeConnectionInitiator(getConnectionInitiator(), dnsResolver);
this.connectionInitiator = new MultihomeConnectionInitiator(getConnectionInitiator(), dnsResolver);
this.connPool = new H2ConnPool(this.connectionInitiator, new Resolver<HttpHost, InetSocketAddress>() {
@Override

View File

@ -46,12 +46,12 @@ import org.apache.hc.core5.util.Timeout;
* @since 5.0
*/
@Contract(threading = ThreadingBehavior.SAFE_CONDITIONAL)
public final class MultuhomeConnectionInitiator implements ConnectionInitiator {
public final class MultihomeConnectionInitiator implements ConnectionInitiator {
private final ConnectionInitiator connectionInitiator;
private final MultihomeIOSessionRequester sessionRequester;
public MultuhomeConnectionInitiator(
public MultihomeConnectionInitiator(
final ConnectionInitiator connectionInitiator,
final DnsResolver dnsResolver) {
this.connectionInitiator = Args.notNull(connectionInitiator, "Connection initiator");