public static class RestClient.RestClientBuilder extends Object
| Constructor and Description |
|---|
RestClientBuilder(String baseUri)
The Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
RestClient.RestClientBuilder |
authenticationToken(AuthenticationToken token)
Authentication token.
|
RestClient |
build()
Builds the.
|
RestClient.RestClientBuilder |
connectionTimeout(int connectionTimeout)
Connection timeout.
|
RestClient.RestClientBuilder |
headers(javax.ws.rs.core.MultivaluedMap<String,Object> headers)
Headers.
|
RestClient.RestClientBuilder |
mediaType(SupportedMediaType mediaType)
.
|
public RestClientBuilder(String baseUri)
baseUri - the base uripublic RestClient.RestClientBuilder connectionTimeout(int connectionTimeout)
connectionTimeout - the connection timeoutpublic RestClient.RestClientBuilder authenticationToken(AuthenticationToken token)
token - the tokenpublic RestClient.RestClientBuilder headers(javax.ws.rs.core.MultivaluedMap<String,Object> headers)
headers - the headerspublic RestClient.RestClientBuilder mediaType(SupportedMediaType mediaType)
mediaType - the mediaTypepublic RestClient build()
Copyright © 2019. All rights reserved.