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

36 lines
821 B
Java
Raw Normal View History

2018-06-27 12:29:21 +02:00
package eu.eudat.logic.proxy.config.entities;
2017-11-20 18:01:19 +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;
2017-11-20 18:01:19 +01:00
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlElementWrapper;
2018-02-16 11:34:02 +01:00
import java.util.List;
2017-11-20 18:01:19 +01:00
2021-12-10 14:37:39 +01:00
public class RegistryUrls extends GenericUrls{
2017-11-20 18:01:19 +01:00
2018-06-29 10:29:43 +02:00
List<UrlConfiguration> urls;
2018-02-16 11:34:02 +01:00
FetchStrategy fetchMode;
2018-06-29 10:29:43 +02:00
public List<UrlConfiguration> getUrls() {
2018-02-16 11:34:02 +01:00
return urls;
}
@XmlElementWrapper
@XmlElement(name = "urlConfig")
2018-06-29 10:29:43 +02:00
public void setUrls(List<UrlConfiguration> urls) {
2018-02-16 11:34:02 +01:00
this.urls = urls;
}
public FetchStrategy getFetchMode() {
return fetchMode;
}
@XmlElement(name = "fetchMode")
public void setFetchMode(FetchStrategy fetchMode) {
this.fetchMode = fetchMode;
}
2017-11-20 18:01:19 +01:00
}