Class OkHttpTokenClient

  • All Implemented Interfaces:
    okhttp3.Call.Factory , pro.fessional.wings.slardar.httprest.okhttp.OkHttpBuildableClient

    
    public class OkHttpTokenClient
     implements Call.Factory, OkHttpBuildableClient
                        

    Clients that auto send Header Token-based authentication, such as Oauth2. Implements Call.Factory, because the Interceptor and Authenticator are not lightweight enough. See okhttp-how-to-refresh-access-token-efficiently

    Since:

    2022-11-25

    Author:

    trydofor

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Call newCall(@NotNull() Request request)
      Call newCall(@NotNull() Request.Builder builder)
      static boolean syncInitToken(@NotNull() OkHttpTokenClient.Tokenize tokenize, @NotNull() Call.Factory callFactory)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait