Example usage for com.squareup.okhttp Interceptor interface-usage

List of usage examples for com.squareup.okhttp Interceptor interface-usage

Introduction

In this page you can find the example usage for com.squareup.okhttp Interceptor interface-usage.

Usage

From source file alberto.avengers.model.rest.utils.interceptors.HttpLoggingInterceptor.java

/**
 * An OkHttp interceptor which logs request and response information. Can be applied as an
 * {@linkplain OkHttpClient#interceptors() application interceptor} or as a
 * {@linkplain OkHttpClient#networkInterceptors() network interceptor}.
 * <p>
 * The format of the logs created by this class should not be considered stable and may change

From source file cn.com.canon.darwin.modules.service.api.interceptor.HttpLoggingInterceptor.java

/**
 * An OkHttp interceptor which logs request and response information. Can be
 * applied as an {@linkplain OkHttpClient#interceptors() application
 * interceptor} or as a {@linkplain OkHttpClient#networkInterceptors() network
 * interceptor}.
 * <p>

From source file com.abiquo.apiclient.interceptors.AuthenticationInterceptor.java

/**
 * Authenticates the requests using the configured {@link Authentication} strategy.
 * 
 * @author Ignasi Barrera
 */
public class AuthenticationInterceptor implements Interceptor {

From source file com.animedetour.android.framework.NetworkSlowdown.java

/**
 * Delays an http request for a random amount of time.
 *
 * This is intended for simulating slow connections when debugging, it simply
 * sleeps the thread in a network interceptor to simulate longer connection
 * times.

From source file com.apothesource.pillfill.network.PFNetworkManager.java

class ApiKeyInterceptor implements Interceptor {

    private final String apiKey;

    public ApiKeyInterceptor(String apiKey) {
        this.apiKey = apiKey;

From source file com.ayuget.redface.network.UserAgentInterceptor.java

public class UserAgentInterceptor implements Interceptor {
    private final String userAgent;

    public UserAgentInterceptor(String userAgent) {
        this.userAgent = userAgent;
    }

From source file com.banxi1988.v2exgeek.api.okhttp.HttpLoggingInterceptor.java

/**
 * An OkHttp interceptor which logs request and response information. Can be applied as an
 * {@linkplain OkHttpClient#interceptors() application interceptor} or as a
 * {@linkplain OkHttpClient#networkInterceptors() network interceptor}.
 * <p>
 * The format of the logs created by this class should not be considered stable and may change

From source file com.btkelly.gnag.api.AuthInterceptor.java

/**
 * Created by bobbake4 on 12/3/15.
 */
public class AuthInterceptor implements Interceptor {

    private final GnagPluginExtension gnagPluginExtension;

From source file com.btkelly.gnag.api.LoggingInterceptor.java

/**
 * Created by bobbake4 on 12/3/15.
 */
public class LoggingInterceptor implements Interceptor {

    private final HttpLoggingInterceptor httpLoggingInterceptor;

From source file com.carlospinan.demoretrofit2.helpers.LoggingInterceptor.java

/**
 * @author Carlos Pian
 * @source https://gist.github.com/erickok/e371a9e0b9e702ed441d
 */
public class LoggingInterceptor implements Interceptor {