Back to project page u2020.
The source code is released under:
Apache License
If you think the Android project u2020 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jakewharton.u2020.data.api; /*w w w. ja v a2 s.co m*/ import javax.inject.Inject; import javax.inject.Singleton; import retrofit.RequestInterceptor; @Singleton public final class ApiHeaders implements RequestInterceptor { private static final String AUTHORIZATION_PREFIX = "Client-ID"; private final String authorizationValue; @Inject public ApiHeaders(@ClientId String clientId) { authorizationValue = AUTHORIZATION_PREFIX + " " + clientId; } @Override public void intercept(RequestFacade request) { request.addHeader("Authorization", authorizationValue); } }