com.frightanic.smn.OpenDataSmnConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of open-data-smn Show documentation
Show all versions of open-data-smn Show documentation
An API to serve publicly available data from the SwissMetNet.
package com.frightanic.smn;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.Configuration;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotEmpty;
@Getter
@Setter
public class OpenDataSmnConfiguration extends Configuration {
@NotEmpty
@JsonProperty("data.url")
private String dataUrl;
@NotEmpty
@JsonProperty("data.cacheTimeToLiveMinutes")
private String dataCacheTimeToLiveMinutes;
@NotEmpty
@JsonProperty("responseCacheTimeToLiveMinutes")
private String responseCacheTimeToLiveMinutes;
@JsonProperty("swaggerPort")
private String swaggerPort;
public Short getDataCacheTimeToLiveMinutes() {
return Short.valueOf(dataCacheTimeToLiveMinutes);
}
public Short getResponseCacheTimeToLiveMinutes() {
return Short.valueOf(responseCacheTimeToLiveMinutes);
}
}