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.karumi.marvelapiclient.AuthInterceptor.java

class AuthInterceptor implements Interceptor {
    private static final String TIMESTAMP_KEY = "ts";
    private static final String HASH_KEY = "hash";
    private static final String APIKEY_KEY = "apikey";

    private final String publicKey;

From source file com.karumi.todoapiclient.interceptor.DefaultHeadersInterceptor.java

public class DefaultHeadersInterceptor implements Interceptor {

    @Override
    public Response intercept(Chain chain) throws IOException {
        Request request = chain.request();
        request = request.newBuilder().addHeader("Accept", "application/json")

From source file com.magnet.max.android.rest.RequestInterceptor.java

/**
 * Interceptor to handle caching and access token
 */
public class RequestInterceptor implements Interceptor {
    public static final String TAG = RequestInterceptor.class.getSimpleName();

From source file com.mamaspapas.api.helper.Oauth1SigningInterceptor.java

public final class Oauth1SigningInterceptor implements Interceptor {
    private static final Escaper ESCAPER = UrlEscapers.urlFormParameterEscaper();
    private static final String OAUTH_CONSUMER_KEY = "oauth_consumer_key";
    private static final String OAUTH_NONCE = "oauth_nonce";
    private static final String OAUTH_SIGNATURE = "oauth_signature";
    private static final String OAUTH_SIGNATURE_METHOD = "oauth_signature_method";

From source file com.marvel.api.ortal.client.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.microsoft.azure.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.credentials.ApplicationTokenCredentialsInterceptor.java

/**
 * Token credentials filter for placing a token credential into request headers.
 */
public class ApplicationTokenCredentialsInterceptor implements Interceptor {
    /**
     * The credentials instance to apply to the HTTP client pipeline.

From source file com.microsoft.rest.credentials.BasicAuthenticationCredentialsInterceptor.java

/**
 * Basic Auth credentials interceptor for placing a basic auth credential into request headers.
 */
public class BasicAuthenticationCredentialsInterceptor implements Interceptor {
    /**
     * The credentials instance to apply to the HTTP client pipeline.

From source file com.microsoft.rest.credentials.TokenCredentialsInterceptor.java

/**
 * Token credentials filter for placing a token credential into request headers.
 */
public class TokenCredentialsInterceptor implements Interceptor {
    /**
     * The credentials instance to apply to the HTTP client pipeline.

From source file com.microsoft.rest.credentials.UserTokenCredentialsInterceptor.java

/**
 * Token credentials filter for placing a token credential into request headers.
 */
public class UserTokenCredentialsInterceptor implements Interceptor {
    /**
     * The credentials instance to apply to the HTTP client pipeline.