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

mesosphere.marathon.client.auth.TokenAuthRequestInterceptor Maven / Gradle / Ivy

There is a newer version: 0.6.3
Show newest version
package mesosphere.marathon.client.auth;

import feign.RequestInterceptor;
import feign.RequestTemplate;

public class TokenAuthRequestInterceptor implements RequestInterceptor {
    private final String headerValue;

    public TokenAuthRequestInterceptor(String token) {
        this.headerValue = "token=" + token;
    }

    @Override
    public void apply(RequestTemplate template) {
        template.header("Authorization", headerValue);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy