Interface ResourcesEndpointProvider
- All Known Implementing Classes:
InstanceProviderTokenEndpointProvider
,StaticResourcesEndpointProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Abstract class to return an endpoint URI from which the resources can be loaded.
By default, the request won't be retried if the request fails while computing endpoint.
-
Method Summary
Modifier and TypeMethodDescriptionendpoint()
Returns the URI that contains the credentials.headers()
Allows passing additional headers to the requestdefault ResourcesEndpointRetryPolicy
Allows the extending class to provide a custom retry policy.
-
Method Details
-
endpoint
Returns the URI that contains the credentials.- Returns:
- URI to retrieve the credentials.
- Throws:
IOException
- If any problems are encountered while connecting to the service to retrieve the endpoint.
-
retryPolicy
Allows the extending class to provide a custom retry policy. The default behavior is not to retry. -
headers
Allows passing additional headers to the request
-