|
|
|
@ -4,6 +4,8 @@ import com.fasterxml.jackson.annotation.JsonInclude;
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
|
|
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
|
|
|
|
@JsonPropertyOrder({
|
|
|
|
@ -14,7 +16,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
|
|
|
"mime_type",
|
|
|
|
|
"size",
|
|
|
|
|
"more_info",
|
|
|
|
|
"hash",
|
|
|
|
|
"md5",
|
|
|
|
|
"location",
|
|
|
|
|
"provenance"
|
|
|
|
|
})
|
|
|
|
@ -27,22 +29,22 @@ public class Payload {
|
|
|
|
|
private String original_url;
|
|
|
|
|
|
|
|
|
|
@JsonProperty("actual_url")
|
|
|
|
|
private String actual_url; // The url of the full-text itself.
|
|
|
|
|
private String actual_url;
|
|
|
|
|
|
|
|
|
|
@JsonProperty("date_acquired")
|
|
|
|
|
private String date_acquired;
|
|
|
|
|
private Date date_acquired;
|
|
|
|
|
|
|
|
|
|
@JsonProperty("mime_type")
|
|
|
|
|
private String mime_type;
|
|
|
|
|
|
|
|
|
|
@JsonProperty("size")
|
|
|
|
|
private String size;
|
|
|
|
|
private Long size; // In bytes.
|
|
|
|
|
|
|
|
|
|
@JsonProperty("more_info")
|
|
|
|
|
private String more_info;
|
|
|
|
|
|
|
|
|
|
@JsonProperty("hash")
|
|
|
|
|
private String hash;
|
|
|
|
|
@JsonProperty("md5")
|
|
|
|
|
private String md5;
|
|
|
|
|
|
|
|
|
|
@JsonProperty("location")
|
|
|
|
|
private String location;
|
|
|
|
@ -51,6 +53,19 @@ public class Payload {
|
|
|
|
|
private String provenance;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Payload(String id, String original_url, String actual_url, Date date_acquired, String mime_type, Long size, String more_info, String md5, String location, String provenance) {
|
|
|
|
|
this.id = id;
|
|
|
|
|
this.original_url = original_url;
|
|
|
|
|
this.actual_url = actual_url;
|
|
|
|
|
this.date_acquired = date_acquired;
|
|
|
|
|
this.mime_type = mime_type;
|
|
|
|
|
this.size = size;
|
|
|
|
|
this.more_info = more_info;
|
|
|
|
|
this.md5 = md5;
|
|
|
|
|
this.location = location;
|
|
|
|
|
this.provenance = provenance;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getId() {
|
|
|
|
|
return id;
|
|
|
|
|
}
|
|
|
|
@ -75,11 +90,11 @@ public class Payload {
|
|
|
|
|
this.actual_url = actual_url;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDate_acquired() {
|
|
|
|
|
public Date getDate_acquired() {
|
|
|
|
|
return date_acquired;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setDate_acquired(String date_acquired) {
|
|
|
|
|
public void setDate_acquired(Date date_acquired) {
|
|
|
|
|
this.date_acquired = date_acquired;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -91,11 +106,11 @@ public class Payload {
|
|
|
|
|
this.mime_type = mime_type;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getSize() {
|
|
|
|
|
public Long getSize() {
|
|
|
|
|
return size;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSize(String size) {
|
|
|
|
|
public void setSize(Long size) {
|
|
|
|
|
this.size = size;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -107,12 +122,12 @@ public class Payload {
|
|
|
|
|
this.more_info = more_info;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getHash() {
|
|
|
|
|
return hash;
|
|
|
|
|
public String getMd5() {
|
|
|
|
|
return md5;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setHash(String hash) {
|
|
|
|
|
this.hash = hash;
|
|
|
|
|
public void setMd5(String md5) {
|
|
|
|
|
this.md5 = md5;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getLocation() {
|
|
|
|
@ -141,7 +156,7 @@ public class Payload {
|
|
|
|
|
", mime_type='" + mime_type + '\'' +
|
|
|
|
|
", size='" + size + '\'' +
|
|
|
|
|
", more_info='" + more_info + '\'' +
|
|
|
|
|
", hash='" + hash + '\'' +
|
|
|
|
|
", md5='" + md5 + '\'' +
|
|
|
|
|
", location='" + location + '\'' +
|
|
|
|
|
", provenance='" + provenance + '\'' +
|
|
|
|
|
'}';
|
|
|
|
|