All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.undefinedlabs.scope.deps.okhttp3.internal.Internal Maven / Gradle / Ivy

Go to download

Scope is a APM for tests to give engineering teams unprecedented visibility into their CI process to quickly identify, troubleshoot and fix failed builds. This artifact contains dependencies for Scope.

There is a newer version: 0.14.0-beta.2
Show newest version
package com.undefinedlabs.scope.deps.okhttp3.internal;

import com.undefinedlabs.scope.deps.okhttp3.*;
import com.undefinedlabs.scope.deps.okhttp3.internal.cache.InternalCache;
import com.undefinedlabs.scope.deps.okhttp3.internal.connection.RealConnection;
import com.undefinedlabs.scope.deps.okhttp3.internal.connection.RouteDatabase;
import com.undefinedlabs.scope.deps.okhttp3.internal.connection.StreamAllocation;

import javax.net.ssl.SSLSocket;
import java.net.MalformedURLException;
import java.net.Socket;
import java.net.UnknownHostException;

public abstract class Internal {

    public static void initializeInstanceForTests() {
        // Needed in tests to ensure that the instance is actually pointing to something.
        new OkHttpClient();
    }

    public static Internal instance;

    public abstract void addLenient(Headers.Builder builder, String line);

    public abstract void addLenient(Headers.Builder builder, String name, String value);

    public abstract void setCache(OkHttpClient.Builder builder, InternalCache internalCache);

    public abstract RealConnection get(ConnectionPool pool, Address address,
                                       StreamAllocation streamAllocation, Route route);

    public abstract boolean equalsNonHost(Address a, Address b);

    public abstract Socket deduplicate(
            ConnectionPool pool, Address address, StreamAllocation streamAllocation);

    public abstract void put(ConnectionPool pool, RealConnection connection);

    public abstract boolean connectionBecameIdle(ConnectionPool pool, RealConnection connection);

    public abstract RouteDatabase routeDatabase(ConnectionPool connectionPool);

    public abstract int code(Response.Builder responseBuilder);

    public abstract void apply(ConnectionSpec tlsConfiguration, SSLSocket sslSocket,
                               boolean isFallback);

    public abstract HttpUrl getHttpUrlChecked(String url)
            throws MalformedURLException, UnknownHostException;

    public abstract StreamAllocation streamAllocation(Call call);

    public abstract Call newWebSocketCall(OkHttpClient client, Request request);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy