Package | Description |
---|---|
com.microsoft.rest |
The package contains the runtime classes required for AutoRest generated
clients to compile and function.
|
Modifier and Type | Method and Description |
---|---|
RestClient.Builder |
RestClient.newBuilder()
Create a new builder for a new Rest Client with the same configurations on this one.
|
RestClient.Builder |
RestClient.Builder.withBaseUrl(Environment environment,
Environment.Endpoint endpoint)
Sets the base URL with the default from the Environment.
|
RestClient.Builder |
RestClient.Builder.withBaseUrl(String baseUrl)
Sets the dynamic base URL.
|
RestClient.Builder |
RestClient.Builder.withCallbackExecutor(Executor executor)
Sets the executor for async callbacks to run on.
|
RestClient.Builder |
RestClient.Builder.withConnectionTimeout(long timeout,
TimeUnit unit)
Set the connection timeout on the HTTP client.
|
RestClient.Builder |
RestClient.Builder.withCredentials(ServiceClientCredentials credentials)
Sets the credentials.
|
RestClient.Builder |
RestClient.Builder.withInterceptor(okhttp3.Interceptor interceptor)
Add an interceptor the Http client pipeline.
|
RestClient.Builder |
RestClient.Builder.withLogLevel(LogLevel logLevel)
Sets the HTTP log level.
|
RestClient.Builder |
RestClient.Builder.withMaxIdleConnections(int maxIdleConnections)
Set the maximum idle connections for the HTTP client.
|
RestClient.Builder |
RestClient.Builder.withNetworkInterceptor(okhttp3.Interceptor networkInterceptor)
Add an interceptor the network layer of Http client pipeline.
|
RestClient.Builder |
RestClient.Builder.withProxy(Proxy proxy)
Sets the proxy for the HTTP client.
|
RestClient.Builder |
RestClient.Builder.withProxyAuthenticator(okhttp3.Authenticator proxyAuthenticator)
Sets the proxy authenticator for the HTTP client.
|
RestClient.Builder |
RestClient.Builder.withReadTimeout(long timeout,
TimeUnit unit)
Set the read timeout on the HTTP client.
|
RestClient.Builder |
RestClient.Builder.withResponseBuilderFactory(ResponseBuilder.Factory responseBuilderFactory)
Sets the response builder factory.
|
RestClient.Builder |
RestClient.Builder.withRetryStrategy(RetryStrategy strategy)
Adds a retry strategy to the client.
|
RestClient.Builder |
RestClient.Builder.withSerializerAdapter(SerializerAdapter<?> serializerAdapter)
Sets the serialization adapter.
|
RestClient.Builder |
RestClient.Builder.withUserAgent(String userAgent)
Sets the user agent header.
|
Copyright © 2019. All rights reserved.