public class ClientUtils extends Object
Constructor and Description |
---|
ClientUtils() |
Modifier and Type | Method and Description |
---|---|
static retrofit2.Retrofit |
createRetrofit(String url,
Optional<okhttp3.Interceptor> interceptor,
ProxyConfiguration proxy) |
static Optional<okhttp3.Interceptor> |
getAuthInterceptor(ClientCredAuthentication auth) |
static Proxy |
getProxy(String apiUrl,
ProxyConfiguration proxy) |
static okhttp3.Authenticator |
getProxyAuthenticator(String username,
String password) |
static String |
getProxyConfigString(ProxyConfiguration proxy) |
public static retrofit2.Retrofit createRetrofit(String url, Optional<okhttp3.Interceptor> interceptor, ProxyConfiguration proxy)
public static okhttp3.Authenticator getProxyAuthenticator(String username, String password)
public static Proxy getProxy(String apiUrl, ProxyConfiguration proxy)
public static Optional<okhttp3.Interceptor> getAuthInterceptor(ClientCredAuthentication auth)
public static String getProxyConfigString(ProxyConfiguration proxy)
Copyright © 2016–2023. All rights reserved.