All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.entur.gbfs.GbfsLoader Maven / Gradle / Ivy

There is a newer version: 4.0.19
Show newest version
package org.entur.gbfs;

import java.util.Map;
import org.entur.gbfs.authentication.RequestAuthenticator;
import org.entur.gbfs.loader.v2.GbfsV2Loader;
import org.entur.gbfs.loader.v3.GbfsV3Loader;
import org.jetbrains.annotations.NotNull;

/**
 * This class provides direct access to loaders for v2 and v3.
 */
public class GbfsLoader {

  /**
   * Loader for GBFS v2 feeds
   * @param url
   * @param httpHeaders
   * @param languageCode
   * @param requestAuthenticator
   * @param timeoutConnection
   * @return
   */
  public GbfsV2Loader gbfsV2Loader(
    String url,
    Map httpHeaders,
    @NotNull String languageCode,
    RequestAuthenticator requestAuthenticator,
    Long timeoutConnection
  ) {
    return new GbfsV2Loader(
      url,
      httpHeaders,
      languageCode,
      requestAuthenticator,
      timeoutConnection
    );
  }

  /**
   * Loader for GBFS v3 feeds
   * @param url
   * @param httpHeaders
   * @param requestAuthenticator
   * @param timeoutConnection
   * @return
   */
  public GbfsV3Loader gbfsV3Loader(
    String url,
    Map httpHeaders,
    RequestAuthenticator requestAuthenticator,
    Long timeoutConnection
  ) {
    return new GbfsV3Loader(url, httpHeaders, requestAuthenticator, timeoutConnection);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy