public static final class MicrosoftClientBuilder.Builder5<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
MicrosoftClientBuilder.Builder5<T> |
accessTokenProvider(AccessTokenProvider atp) |
MicrosoftClientBuilder.Builder5<T> |
authenticationEndpoint(AuthenticationEndpoint authenticationEndpoint)
Sets the authentication endpoint url to use for access tokens etc.
|
MicrosoftClientBuilder.Builder5<T> |
authenticationEndpoint(String authenticationEndpoint)
Sets the authentication endpoint url to use for access tokens etc.
|
MicrosoftClientBuilder.Builder5<T> |
authenticator(Authenticator authenticator) |
T |
build() |
MicrosoftClientBuilder.Builder5<T> |
connectTimeout(long duration,
TimeUnit unit) |
MicrosoftClientBuilder.Builder5<T> |
httpClientBuilderExtras(Function<org.apache.http.impl.client.HttpClientBuilder,org.apache.http.impl.client.HttpClientBuilder> extras)
Do your own thing to further modify a configured
HttpClientBuilder. |
MicrosoftClientBuilder.Builder5<T> |
httpClientProvider(Supplier<org.apache.http.impl.client.CloseableHttpClient> supplier)
Do your own thing to create an Apache
HttpClient. |
MicrosoftClientBuilder.Builder5<T> |
httpServiceTransformer(Function<? super com.github.davidmoten.odata.client.HttpService,? extends com.github.davidmoten.odata.client.HttpService> transformer) |
MicrosoftClientBuilder.Builder5<T> |
proxyHost(String proxyHost) |
MicrosoftClientBuilder.Builder5<T> |
proxyPassword(String password) |
MicrosoftClientBuilder.Builder5<T> |
proxyPort(int proxyPort) |
MicrosoftClientBuilder.Builder5<T> |
proxyUsername(String username) |
MicrosoftClientBuilder.Builder5<T> |
readTimeout(long duration,
TimeUnit unit) |
MicrosoftClientBuilder.Builder5<T> |
refreshBeforeExpiry(long duration,
TimeUnit unit) |
public MicrosoftClientBuilder.Builder5<T> refreshBeforeExpiry(long duration, TimeUnit unit)
public MicrosoftClientBuilder.Builder5<T> connectTimeout(long duration, TimeUnit unit)
public MicrosoftClientBuilder.Builder5<T> readTimeout(long duration, TimeUnit unit)
public MicrosoftClientBuilder.Builder5<T> proxyHost(String proxyHost)
public MicrosoftClientBuilder.Builder5<T> proxyPort(int proxyPort)
public MicrosoftClientBuilder.Builder5<T> httpServiceTransformer(Function<? super com.github.davidmoten.odata.client.HttpService,? extends com.github.davidmoten.odata.client.HttpService> transformer)
public MicrosoftClientBuilder.Builder5<T> accessTokenProvider(AccessTokenProvider atp)
public MicrosoftClientBuilder.Builder5<T> proxyUsername(String username)
public MicrosoftClientBuilder.Builder5<T> proxyPassword(String password)
public MicrosoftClientBuilder.Builder5<T> httpClientProvider(Supplier<org.apache.http.impl.client.CloseableHttpClient> supplier)
HttpClient. This method might
disappear if the underlying http service gets swapped out for another one.
You might want to use this method if your proxy interaction is complicated
for example.supplier - provider of HttpClientpublic MicrosoftClientBuilder.Builder5<T> httpClientBuilderExtras(Function<org.apache.http.impl.client.HttpClientBuilder,org.apache.http.impl.client.HttpClientBuilder> extras)
HttpClientBuilder.
This method might disappear if the underlying http service gets swapped out
for another one. You might want to use this method if your proxy interaction
is complicated for example or if you want to use interceptors or other fancy
stuff.extras - modifier of builderpublic MicrosoftClientBuilder.Builder5<T> authenticationEndpoint(AuthenticationEndpoint authenticationEndpoint)
AuthenticationEndpoint.GLOBAL.authenticationEndpoint - endpoint to use for authenticationpublic MicrosoftClientBuilder.Builder5<T> authenticationEndpoint(String authenticationEndpoint)
AuthenticationEndpoint.GLOBAL url.authenticationEndpoint - endpoint to use for authenticationpublic MicrosoftClientBuilder.Builder5<T> authenticator(Authenticator authenticator)
public T build()
Copyright © 2018–2020. All rights reserved.