
com.rey.jsonbatch.model.Response Maven / Gradle / Ivy
package com.rey.jsonbatch.model;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
public class Response {
private Integer status;
private Map> headers;
private Object body;
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Map> getHeaders() {
return headers;
}
public void setHeaders(Map> headers) {
this.headers = headers;
}
public Object getBody() {
return body;
}
public void setBody(Object body) {
this.body = body;
}
public Map toMap() {
Map map = new LinkedHashMap<>();
map.put("status", status);
map.put("headers", headers);
map.put("body", body);
return map;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy