
org.opentripplanner.ext.siri.updater.azure.SiriAzureETUpdaterParameters 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
The newest version!
package org.opentripplanner.ext.siri.updater.azure;
import com.azure.core.amqp.implementation.ConnectionStringProperties;
import java.time.LocalDate;
import org.opentripplanner.updater.trip.UrlUpdaterParameters;
public class SiriAzureETUpdaterParameters
extends SiriAzureUpdaterParameters
implements UrlUpdaterParameters {
private LocalDate fromDateTime;
public SiriAzureETUpdaterParameters() {
super("siri-azure-et-updater");
}
public LocalDate getFromDateTime() {
return fromDateTime;
}
public void setFromDateTime(LocalDate fromDateTime) {
this.fromDateTime = fromDateTime;
}
@Override
public String url() {
var url = getServiceBusUrl();
try {
return new ConnectionStringProperties(url).getEndpoint().toString();
} catch (IllegalArgumentException e) {
return url;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy