All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.neogroup.warp.MultipartItem Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy