Interface HttpApiProvider<T>

Type Parameters:
T - The interface type
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 HttpApiProvider<T>
Provides http client implementations for an interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the provided implementation of the API.
    default Class<T>
    Return the interface type this API implements.
  • Method Details

    • type

      default Class<T> type()
      Return the interface type this API implements.
    • provide

      T provide(HttpClient client)
      Return the provided implementation of the API.