Interface ResourcesEndpointProvider
-
- All Known Implementing Classes:
InstanceProviderTokenEndpointProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ResourcesEndpointProvider
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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description URI
endpoint()
Returns the URI that contains the credentials.default Map<String,String>
headers()
Allows passing additional headers to the requestdefault ResourcesEndpointRetryPolicy
retryPolicy()
Allows the extending class to provide a custom retry policy.
-
-
-
Method Detail
-
endpoint
URI endpoint() throws IOException
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
default ResourcesEndpointRetryPolicy retryPolicy()
Allows the extending class to provide a custom retry policy. The default behavior is not to retry.
-
-