Class AuthorizationHeaderInterceptor

  • All Implemented Interfaces:
    okhttp3.Interceptor

    public class AuthorizationHeaderInterceptor
    extends HeaderInterceptor
    Interceptor to add authorization header to requests
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface okhttp3.Interceptor

        okhttp3.Interceptor.Chain
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String HEADER_NAME  
    • Constructor Summary

      Constructors 
      Constructor Description
      AuthorizationHeaderInterceptor​(java.lang.String token)
      Create Header interceptor, saving parameters.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AuthorizationHeaderInterceptor

        public AuthorizationHeaderInterceptor​(java.lang.String token)
        Create Header interceptor, saving parameters.
        Parameters:
        token - the access token to be used with *every* request.