public abstract class AbstractOAuth2HttpClientFactory extends AbstractHttpClientFactory implements WrappingHttpClientFactory
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.http.client.methods.HttpUriRequest |
currentRequest |
protected URI |
oauth2GrantServiceURI |
protected URI |
oauth2TokenServiceURI |
protected DefaultHttpClientFactory |
wrapped |
USER_AGENT| Constructor and Description |
|---|
AbstractOAuth2HttpClientFactory(DefaultHttpClientFactory wrapped,
URI oauth2GrantServiceURI,
URI oauth2TokenServiceURI) |
AbstractOAuth2HttpClientFactory(URI oauth2GrantServiceURI,
URI oauth2TokenServiceURI) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
accessToken(org.apache.http.impl.client.DefaultHttpClient client)
Deprecated.
Use the method accessToken(HttpClientBuilder client)
|
protected void |
accessToken(org.apache.http.impl.client.HttpClientBuilder clientBuilder) |
void |
close(org.apache.http.client.HttpClient httpClient) |
org.apache.http.client.HttpClient |
create(HttpMethod method,
URI uri) |
HttpClientFactory |
getWrappedHttpClientFactory() |
protected abstract void |
init() |
protected abstract boolean |
isInited() |
protected abstract void |
refreshToken(org.apache.http.impl.client.DefaultHttpClient client)
Deprecated.
Use the method refreshToken(HttpClientBuilder client)
|
protected void |
refreshToken(org.apache.http.impl.client.HttpClientBuilder client) |
protected final DefaultHttpClientFactory wrapped
protected final URI oauth2GrantServiceURI
protected final URI oauth2TokenServiceURI
protected org.apache.http.client.methods.HttpUriRequest currentRequest
public AbstractOAuth2HttpClientFactory(URI oauth2GrantServiceURI, URI oauth2TokenServiceURI)
public AbstractOAuth2HttpClientFactory(DefaultHttpClientFactory wrapped, URI oauth2GrantServiceURI, URI oauth2TokenServiceURI)
public HttpClientFactory getWrappedHttpClientFactory()
getWrappedHttpClientFactory in interface WrappingHttpClientFactoryprotected abstract boolean isInited()
throws OAuth2Exception
OAuth2Exceptionprotected abstract void init()
throws OAuth2Exception
OAuth2Exceptionprotected void accessToken(org.apache.http.impl.client.HttpClientBuilder clientBuilder)
throws OAuth2Exception
OAuth2Exceptionprotected void refreshToken(org.apache.http.impl.client.HttpClientBuilder client)
throws OAuth2Exception
OAuth2Exception@Deprecated protected abstract void accessToken(org.apache.http.impl.client.DefaultHttpClient client) throws OAuth2Exception
client - OAuth2Exception@Deprecated protected abstract void refreshToken(org.apache.http.impl.client.DefaultHttpClient client) throws OAuth2Exception
client - OAuth2Exceptionpublic org.apache.http.client.HttpClient create(HttpMethod method, URI uri)
create in interface HttpClientFactorypublic void close(org.apache.http.client.HttpClient httpClient)
close in interface HttpClientFactoryCopyright © 2023. All rights reserved.