public class ApiKeyHttpClientProvider extends Object implements HttpClientProvider
Constructor and Description |
---|
ApiKeyHttpClientProvider(String apiKey)
Constructor that takes an API key.
|
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.client.Client |
getClient()
Returns the HTTP client.
|
boolean |
useSsl()
Returns
true if the provider should use https. |
public ApiKeyHttpClientProvider(String apiKey)
apiKey
- The API keypublic boolean useSsl()
true
if the provider should use https.useSsl
in interface HttpClientProvider
true
if the provider should use httpspublic javax.ws.rs.client.Client getClient()
getClient
in interface HttpClientProvider
Copyright © 2018. All rights reserved.