org.opentripplanner.updater.vehicle_rental.datasources.params.VehicleRentalDataSourceParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
package org.opentripplanner.updater.vehicle_rental.datasources.params;
import org.opentripplanner.updater.DataSourceType;
import javax.annotation.Nullable;
import javax.validation.constraints.NotNull;
import java.util.Map;
public class VehicleRentalDataSourceParameters {
private final DataSourceType sourceType;
private final String url;
private final Map httpHeaders;
public VehicleRentalDataSourceParameters(
DataSourceType sourceType,
String url,
@NotNull
Map httpHeaders
) {
this.sourceType = sourceType;
this.url = url;
this.httpHeaders = httpHeaders;
}
@NotNull
public String getUrl() { return url; }
@NotNull
public DataSourceType getSourceType() {
return sourceType;
}
@NotNull
public Map getHttpHeaders() {
return httpHeaders;
}
}