List of usage examples for com.squareup.okhttp Dns interface-usage
From source file co.paralleluniverse.fibers.okhttp.test.utils.original.DoubleInetAddressDns.java
/** * A network that always resolves two IP addresses per host. Use this when testing route selection * fallbacks to guarantee that a fallback address is available. */ public class DoubleInetAddressDns implements Dns { @Override
From source file co.paralleluniverse.fibers.okhttp.test.utils.original.http.FakeDns.java
public final class FakeDns implements Dns { private List<String> requestedHosts = new ArrayList<>(); private List<InetAddress> addresses = Collections.emptyList(); /** Sets the addresses to be returned by this fake DNS service. */ public FakeDns addresses(List<InetAddress> addresses) {
From source file co.paralleluniverse.fibers.okhttp.test.utils.original.SingleInetAddressDns.java
/** * A network that resolves only one IP address per host. Use this when testing * route selection fallbacks to prevent the host machine's various IP addresses * from interfering. */ public class SingleInetAddressDns implements Dns {
From source file org.mariotaku.twidere.util.net.TwidereDns.java
@Singleton public class TwidereDns implements Constants, Dns { private static final String RESOLVER_LOGTAG = "TwidereDns"; private final SharedPreferences mHostMapping, mPreferences;