2018-06-27 12:29:21 +02:00
|
|
|
package eu.eudat.logic.proxy.config;
|
2017-11-20 18:01:19 +01:00
|
|
|
|
|
|
|
|
2022-01-21 09:58:29 +01:00
|
|
|
import jakarta.xml.bind.annotation.XmlElement;
|
2017-11-20 18:01:19 +01:00
|
|
|
|
2018-06-29 10:29:43 +02:00
|
|
|
public class UrlConfiguration {
|
2017-11-20 18:01:19 +01:00
|
|
|
|
2018-05-28 11:50:42 +02:00
|
|
|
private String key;
|
|
|
|
private String label;
|
2018-02-16 11:34:02 +01:00
|
|
|
private Integer ordinal;
|
|
|
|
private String url;
|
2018-06-29 10:29:43 +02:00
|
|
|
private DataUrlConfiguration data;
|
2019-09-05 16:44:25 +02:00
|
|
|
private String type;
|
2018-02-16 11:34:02 +01:00
|
|
|
private String paginationPath;
|
2019-10-01 12:19:39 +02:00
|
|
|
private String contentType;
|
2019-10-03 13:06:44 +02:00
|
|
|
private String funderQuery;
|
2019-10-04 13:33:38 +02:00
|
|
|
private String firstpage;
|
2020-11-06 17:45:20 +01:00
|
|
|
private String requestType = "GET";
|
|
|
|
private String requestBody = "";
|
2018-02-16 11:34:02 +01:00
|
|
|
|
2018-05-28 11:50:42 +02:00
|
|
|
public String getKey() {
|
|
|
|
return key;
|
|
|
|
}
|
|
|
|
@XmlElement(name = "key")
|
|
|
|
public void setKey(String key) {
|
|
|
|
this.key = key;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getLabel() {
|
|
|
|
return label;
|
|
|
|
}
|
|
|
|
@XmlElement(name = "label")
|
|
|
|
public void setLabel(String label) {
|
|
|
|
this.label = label;
|
|
|
|
}
|
2018-02-16 11:34:02 +01:00
|
|
|
|
|
|
|
public String getUrl() {
|
|
|
|
return url;
|
|
|
|
}
|
|
|
|
@XmlElement(name = "url")
|
|
|
|
public void setUrl(String url) {
|
|
|
|
this.url = url;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Integer getOrdinal() {
|
|
|
|
return ordinal;
|
|
|
|
}
|
|
|
|
@XmlElement(name = "ordinal")
|
|
|
|
public void setOrdinal(Integer ordinal) {
|
|
|
|
this.ordinal = ordinal;
|
|
|
|
}
|
|
|
|
|
2018-06-29 10:29:43 +02:00
|
|
|
public DataUrlConfiguration getData() {
|
|
|
|
return data;
|
2018-02-16 11:34:02 +01:00
|
|
|
}
|
2018-06-29 10:29:43 +02:00
|
|
|
@XmlElement(name = "data")
|
|
|
|
public void setData(DataUrlConfiguration data) {
|
|
|
|
this.data = data;
|
2018-02-16 11:34:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public String getPaginationPath() {
|
|
|
|
return paginationPath;
|
|
|
|
}
|
|
|
|
@XmlElement(name = "paginationpath")
|
|
|
|
public void setPaginationPath(String paginationPath) {
|
|
|
|
this.paginationPath = paginationPath;
|
|
|
|
}
|
|
|
|
|
2019-09-05 16:44:25 +02:00
|
|
|
public String getType() {
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
@XmlElement(name = "type")
|
|
|
|
public void setType(String type) {
|
|
|
|
this.type = type;
|
|
|
|
}
|
2019-10-01 12:19:39 +02:00
|
|
|
|
|
|
|
public String getContentType() {
|
|
|
|
return contentType;
|
|
|
|
}
|
|
|
|
@XmlElement(name = "contenttype")
|
|
|
|
public void setContentType(String contentType) {
|
|
|
|
this.contentType = contentType;
|
|
|
|
}
|
2019-10-03 13:06:44 +02:00
|
|
|
|
|
|
|
public String getFunderQuery() {
|
|
|
|
return funderQuery;
|
|
|
|
}
|
|
|
|
@XmlElement(name = "funderQuery")
|
|
|
|
public void setFunderQuery(String funderQuery) {
|
|
|
|
this.funderQuery = funderQuery;
|
|
|
|
}
|
2019-10-04 13:33:38 +02:00
|
|
|
|
|
|
|
public String getFirstpage() {
|
|
|
|
return firstpage;
|
|
|
|
}
|
|
|
|
@XmlElement(name = "firstPage")
|
|
|
|
public void setFirstpage(String firstpage) {
|
|
|
|
this.firstpage = firstpage;
|
|
|
|
}
|
2020-11-06 17:45:20 +01:00
|
|
|
|
|
|
|
public String getRequestType() {
|
|
|
|
return requestType;
|
|
|
|
}
|
|
|
|
@XmlElement(name = "request")
|
|
|
|
public void setRequestType(String requestType) {
|
|
|
|
this.requestType = requestType != null ? requestType : "GET";
|
|
|
|
}
|
|
|
|
public String getRequestBody() {
|
|
|
|
return requestBody;
|
|
|
|
}
|
|
|
|
@XmlElement(name = "requestBody")
|
|
|
|
public void setRequestBody(String requestBody) {
|
|
|
|
this.requestBody = requestBody != null ? requestBody : "";
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-11-20 18:01:19 +01:00
|
|
|
}
|