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 com.microsoft.rest.CustomHeaderInterceptor.java

/**
 * An instance of this class enables adding custom headers in client requests
 * when added to the {@link com.squareup.okhttp.OkHttpClient} interceptors.
 */
public class CustomHeaderInterceptor implements Interceptor {
    /**

From source file com.microsoft.rest.retry.RetryHandler.java

/**
 * An instance of this interceptor placed in the request pipeline handles retriable errors.
 */
public class RetryHandler implements Interceptor {
    /**
     * Represents the default number of retries.

From source file com.microsoft.rest.UserAgentInterceptor.java

/**
 * User agent interceptor for putting a 'User-Agent' header in the request.
 */
public class UserAgentInterceptor implements Interceptor {
    /**
     * The default user agent header.

From source file com.mobimvp.cliques.util.StethoInterceptor.java

/**
 * Provides easy integration with <a href="http://square.github.io/okhttp/">OkHttp</a> 2.2.0+
 * by way of the new <a href="https://github.com/square/okhttp/wiki/Interceptors">Interceptor</a>
 * system. To use:
 * <pre>
 *   OkHttpClient client = new OkHttpClient();

From source file com.mtnfog.idyl.e3.sdk.interceptors.HmacSha512v1SigningInterceptor.java

public class HmacSha512v1SigningInterceptor implements Interceptor {

    private String apiKey;
    private AuthenticationMethod method;
    private String requestDate;

From source file com.netflix.spinnaker.okhttp.OkHttpMetricsInterceptor.java

public class OkHttpMetricsInterceptor implements com.squareup.okhttp.Interceptor {
    private final Registry registry;

    public OkHttpMetricsInterceptor(Registry registry) {
        this.registry = registry;
    }

From source file com.rafagarcia.countries.backend.webapi.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.rowland.movies.rest.interceptors.SessionRequestInterceptor.java

/**
 * Created by Oti Rowland on 12/23/2015.
 */
public class SessionRequestInterceptor implements Interceptor {
    @Override
    public Response intercept(Chain chain) throws IOException {

From source file com.rowland.moviesquire.rest.interceptors.SessionRequestInterceptor.java

/**
 * Created by Oti Rowland on 12/23/2015.
 */
public class SessionRequestInterceptor implements Interceptor {
    @Override
    public Response intercept(Chain chain) throws IOException {

From source file com.shopify.buy.data.MockResponder.java

public class MockResponder implements Interceptor {

    private static final String FILE_NAME = "mocked_responses.json";

    public static final String KEY_CODE = "code";
    public static final String KEY_MESSAGE = "message";