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.

@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

    Modifier and Type
    Method
    Description
    Returns the URI that contains the credentials.
    default Map<String,String>
    Allows passing additional headers to the request
    Allows the extending class to provide a custom retry policy.
  • Method Details

    • 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.
    • headers

      default Map<String,String> headers()
      Allows passing additional headers to the request