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

com.github.tobato.fastdfs.spring.boot.FileStorePath Maven / Gradle / Ivy

The newest version!
package com.github.tobato.fastdfs.spring.boot;

import com.github.tobato.fastdfs.domain.fdfs.StorePath;

public class FileStorePath extends StorePath {

    /*
     * 解析路径
     */
    private static final String SPLIT_GROUP_NAME_AND_FILENAME_SEPERATOR = "/";
    
	/*
	 * 缩略图访问地址(图片类型文件)
	 */
	private String thumb;
	
    /*
     * 存储文件路径
     */
    public FileStorePath() {
        super();
    }

    public FileStorePath(StorePath store, String thumb) {
        super(store.getGroup(), store.getPath());
        this.thumb = thumb;
    }
    
    public FileStorePath(String group, String path, String thumb) {
        super(group, path);
        this.thumb = thumb;
    }

	public String getThumb() {
		return thumb;
	}

	public void setThumb(String thumb) {
		this.thumb = thumb;
	}
	
    public String getFullThumb() {
        return this.getGroup().concat(SPLIT_GROUP_NAME_AND_FILENAME_SEPERATOR).concat(this.thumb);
    }
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy