Class FederationGatewayDownloadService


  • @Component
    public class FederationGatewayDownloadService
    extends Object
    Responsible for downloading and storing batch information from the federation gateway.
    • Constructor Detail

      • FederationGatewayDownloadService

        public FederationGatewayDownloadService​(FederationGatewayClient federationGatewayClient)
        Constructor.
        Parameters:
        federationGatewayClient - A FederationGatewayClient for retrieving federation diagnosis key batches.
    • Method Detail

      • downloadBatch

        public BatchDownloadResponse downloadBatch​(LocalDate date)
        Download the first batch from the EFGS for the given date.
        Parameters:
        date - The date for which the batch should be downloaded.
        Returns:
        The BatchDownloadResponse containing the downloaded batch, batchTag and nextBatchTag.
      • downloadBatch

        public BatchDownloadResponse downloadBatch​(String batchTag,
                                                   LocalDate date)
        Download the batch from the EFGS with the given batchTag for the given date.
        Parameters:
        batchTag - The batchTag of the batch that should be downloaded.
        date - The date for which the batch should be downloaded.
        Returns:
        The BatchDownloadResponse containing the downloaded batch, batchTag and nextBatchTag.