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

org.opentripplanner.ext.vehicleparking.parkapi.ParkAPIUpdaterParameters Maven / Gradle / Ivy

package org.opentripplanner.ext.vehicleparking.parkapi;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import javax.validation.constraints.NotNull;
import org.opentripplanner.updater.DataSourceType;
import org.opentripplanner.updater.vehicle_parking.VehicleParkingUpdaterParameters;

/**
 * Class that extends {@link VehicleParkingUpdaterParameters} with parameters required by {@link
 * ParkAPIUpdater}.
 */
public class ParkAPIUpdaterParameters extends VehicleParkingUpdaterParameters {

    private final String url;
    private final String feedId;
    private final Map httpHeaders;
    private final List tags;


    public ParkAPIUpdaterParameters(
            String configRef,
            String url,
            String feedId,
            int frequencySec,
            @NotNull
                    Map httpHeaders,
            List tags,
            DataSourceType sourceType
    ) {
        super(configRef, frequencySec, sourceType);
        this.url = url;
        this.feedId = feedId;
        this.httpHeaders = httpHeaders;
        this.tags = tags;
    }

    public String getFeedId() {
        return feedId;
    }

    public String getUrl() {
        return url;
    }

    public Map getHttpHeaders() {
        return httpHeaders;
    }

    public Collection getTags() {
        return tags;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy