Package com.cta4j.bus

Interface BusApi.Builder

Enclosing interface:
BusApi

public static interface BusApi.Builder
Builder for constructing BusApi instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    Builds a configured BusApi instance.
    host(String host)
    Sets the API host to use for requests.
  • Method Details

    • host

      BusApi.Builder host(String host)
      Sets the API host to use for requests.

      If not specified, the default CTA Bus Tracker API host is used.

      Parameters:
      host - the API host
      Returns:
      this builder instance
    • build

      BusApi build()
      Builds a configured BusApi instance.
      Returns:
      a new BusApi