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

eleme.openapi.sdk.media.upload.MultipartInitRequest Maven / Gradle / Ivy

There is a newer version: 1.30.71
Show newest version
package eleme.openapi.sdk.media.upload;

import java.io.InputStream;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * @author jinli
 */
public class MultipartInitRequest extends BaseUploadRequest implements Serializable {

    private static final long serialVersionUID = 1456697311165974437L;

    private String dir;                                                 // media file dir
    private String name;                                                // media file name
    private String md5;                                                 // md5 of file content
    private InputStream content;                                        // file content
    private long contentSize;                                           // file content size

    private Map metas = new HashMap();  // meta vars
    private Map vars = new HashMap();   // custom vars
    private Map extendPars = new HashMap();   // custom extend parameters, set in http body, not be persisted

    public MultipartInitRequest() {
    }

    public MultipartInitRequest(String token) {
        super(token);
    }

    public MultipartInitRequest(UploadPolicy uploadPolicy) {
        super(uploadPolicy);
    }

    public String getDir() {
        return dir;
    }

    public void setDir(String dir) {
        this.dir = dir;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public Map getMetas() {
        return metas;
    }

    public void setMetas(Map metas) {
        this.metas = metas;
    }

    public Map getVars() {
        return vars;
    }

    public void setVars(Map vars) {
        this.vars = vars;
    }

    public Map getExtendPars() {
        return extendPars;
    }

    public void setExtendPars(Map extendPars) {
        this.extendPars = extendPars;
    }

    public InputStream getContent() {
        return content;
    }

    public void setContent(InputStream content) {
        this.content = content;
    }

    public long getContentSize() {
        return contentSize;
    }

    public void setContentSize(long contentSize) {
        this.contentSize = contentSize;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy