Back to project page jive-android-core-sdk-example.
The source code is released under:
Apache License
If you think the Android project jive-android-core-sdk-example 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.jivesoftware.example.github; //from w w w .ja v a2s. c o m import com.google.common.net.HttpHeaders; import retrofit.RequestInterceptor; /** * Created by mark.schisler on 9/3/14. */ public class GitHubOauthRequestInterceptor implements RequestInterceptor { private final String token; public GitHubOauthRequestInterceptor(String token) {this.token = token;} @Override public void intercept(RequestFacade request) { request.addHeader(HttpHeaders.AUTHORIZATION, "token " + token); } }