public abstract static class OAuthClient.OAuthBuilder<T extends OAuthClient.OAuthBuilder<T>> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
baseURL |
protected okhttp3.OkHttpClient |
client |
protected String |
clientID |
protected String |
clientSecret |
protected int |
connectTimeout |
protected org.slf4j.Logger |
logger |
protected int |
readTimeout |
| Constructor and Description |
|---|
OAuthBuilder() |
| Modifier and Type | Method and Description |
|---|---|
T |
baseURL(String baseURL) |
abstract OAuthClient |
build() |
T |
client(okhttp3.OkHttpClient client) |
T |
clientID(String clientID) |
T |
clientSecret(String clientSecret) |
T |
connectTimeout(int connectTimeout) |
protected okhttp3.OkHttpClient |
defaultClient(Duration readTimeout,
Duration connectTimeout) |
protected T |
init() |
T |
logger(org.slf4j.Logger logger) |
T |
readTimeout(int readTimeout) |
protected T |
self() |
protected String clientID
protected String clientSecret
protected String baseURL
protected int readTimeout
protected int connectTimeout
protected okhttp3.OkHttpClient client
protected org.slf4j.Logger logger
protected T self()
public T readTimeout(int readTimeout)
public T connectTimeout(int connectTimeout)
public T client(okhttp3.OkHttpClient client)
public T logger(org.slf4j.Logger logger)
public abstract OAuthClient build() throws Exception
Exceptionprotected T init()
Copyright © 2025. All rights reserved.