org.neogroup.warp.MultipartItem Maven / Gradle / Ivy
package org.neogroup.warp;
import java.util.Map;
public class MultipartItem {
private Map headers;
private byte[] content;
public MultipartItem (Map headers, byte[] content) {
this.headers = headers;
this.content = content;
}
public Map getHeaders() {
return headers;
}
public String getHeader(String name) {
return headers.get(name);
}
public boolean hasHeader(String name) {
return headers.containsKey(name);
}
public byte[] getContent() {
return content;
}
}