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

org.opentripplanner.standalone.config.updaters.sources.SiriVMHttpTripUpdaterSourceParameters Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
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; }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy