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

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

The 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 MultipartUploadRequest extends BaseUploadRequest implements Serializable {

    private static final long serialVersionUID = -1891030390087066968L;

    private String dir;                                                 // media file dir
    private String name;                                                // media file name
    private String id;                                                  // id
    private String uploadId;                                            // upload id
    private Integer partNumber;                                         // part number
    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 MultipartUploadRequest() {
    }

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

    public MultipartUploadRequest(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 getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUploadId() {
        return uploadId;
    }

    public void setUploadId(String uploadId) {
        this.uploadId = uploadId;
    }

    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 Integer getPartNumber() {
        return partNumber;
    }

    public void setPartNumber(Integer partNumber) {
        this.partNumber = partNumber;
    }

    public String getMd5() {
        return md5;
    }

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

    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