Interface ModelListFetcher

All Known Implementing Classes:
HttpModelListFetcher
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 ModelListFetcher
The single HTTP seam a sync goes through, so adapters can be tested against recorded fixtures without touching the network.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String url, Map<String,String> headers)
    GETs url and returns the body.
  • Method Details

    • get

      String get(String url, Map<String,String> headers)
      GETs url and returns the body.
      Throws:
      SyncException - on a non-2xx status or any transport failure, with a message already fit to show an administrator