
com.contentful.java.cda.interceptor.AuthorizationHeaderInterceptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java SDK for Contentful's Content Delivery API.
package com.contentful.java.cda.interceptor;
/**
* Interceptor to add authorization header to requests
*/
public class AuthorizationHeaderInterceptor extends HeaderInterceptor {
public static final String HEADER_NAME = "Authorization";
/**
* Create Header interceptor, saving parameters.
*
* @param token the access token to be used with *every* request.
*/
public AuthorizationHeaderInterceptor(String token) {
super(HEADER_NAME, "Bearer " + token);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy