updated GeoportalRequest bean

This commit is contained in:
Francesco Mangiacrapa 2024-04-04 17:07:16 +02:00
parent 1d5d8bb438
commit a63f3bbfaf
1 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,6 @@
package org.gcube.datatransfer.resolver.geoportal;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
@ -15,11 +16,13 @@ import lombok.extern.slf4j.Slf4j;
*/
@Slf4j
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class GeoportalRequest {
public static final String P_GCUBE_SCOPE = "gcube_scope";
public static final String P_ITEM_TYPE = "item_type";
public static final String P_ITEM_ID = "item_id";
public static final String P_RESOLVES_AS = "res";
public static final String P_QUERY_STRING = "query_string";
@JsonProperty(P_GCUBE_SCOPE)
@ -34,7 +37,11 @@ public class GeoportalRequest {
*/
@JsonProperty(P_ITEM_ID)
private String itemID;
@JsonProperty(P_QUERY_STRING)
private String queryString;
@JsonProperty(P_RESOLVES_AS)
private String res;
}