argos/dmp-backend/web/src/main/java/eu/eudat/logic/proxy/config/entities/DatasetUrls.java

34 lines
795 B
Java
Raw Normal View History

2018-06-27 12:29:21 +02:00
package eu.eudat.logic.proxy.config.entities;
2018-01-17 13:03:51 +01:00
2018-06-27 12:29:21 +02:00
import eu.eudat.logic.proxy.config.FetchStrategy;
2018-06-29 10:29:43 +02:00
import eu.eudat.logic.proxy.config.UrlConfiguration;
2018-01-17 13:03:51 +01:00
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import java.util.List;
2018-02-01 10:08:06 +01:00
2018-01-17 13:03:51 +01:00
public class DatasetUrls {
2018-06-29 10:29:43 +02:00
List<UrlConfiguration> urls;
2018-01-17 13:03:51 +01:00
FetchStrategy fetchMode;
2018-06-29 10:29:43 +02:00
public List<UrlConfiguration> getUrls() {
2018-01-17 13:03:51 +01:00
return urls;
}
2018-02-16 11:34:02 +01:00
2018-01-17 13:03:51 +01:00
@XmlElementWrapper
@XmlElement(name = "urlConfig")
2018-06-29 10:29:43 +02:00
public void setUrls(List<UrlConfiguration> urls) {
2018-01-17 13:03:51 +01:00
this.urls = urls;
}
2018-02-16 11:34:02 +01:00
2018-01-17 13:03:51 +01:00
public FetchStrategy getFetchMode() {
return fetchMode;
}
2018-02-16 11:34:02 +01:00
2018-01-17 13:03:51 +01:00
@XmlElement(name = "fetchMode")
public void setFetchMode(FetchStrategy fetchMode) {
this.fetchMode = fetchMode;
}
}