org.opentripplanner.standalone.config.updaters.sources.SiriVMHttpTripUpdaterSourceParameters 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.standalone.config.updaters.sources;
import org.opentripplanner.ext.siri.updater.SiriVMHttpTripUpdateSource;
import org.opentripplanner.standalone.config.NodeAdapter;
public class SiriVMHttpTripUpdaterSourceParameters extends UpdaterSourceParameters implements
SiriVMHttpTripUpdateSource.Parameters {
private final String requestorRef;
private final String feedId;
private final int timeoutSec;
public SiriVMHttpTripUpdaterSourceParameters(NodeAdapter c) {
super(c);
requestorRef = c.asText("requestorRef", null);
feedId = c.asText("feedId", null);
timeoutSec = c.asInt("timeoutSec", -1);
}
public String getRequestorRef() { return requestorRef; }
public String getFeedId() { return feedId; }
public int getTimeoutSec() { return timeoutSec; }
}