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

org.javaweb.utils.MultipartFile Maven / Gradle / Ivy

There is a newer version: 2.0.3
Show newest version
/*
 * Copyright yz 2016-01-14  Email:[email protected].
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.javaweb.utils;

import java.io.Serializable;

/**
 * Created by yz on 2016/12/3.
 */
public class MultipartFile implements Serializable {

	/**
	 * 原始文件名称
	 */
	private String originalFilename;

	/**
	 * 上传成功后的新文件名
	 */
	private String filename;

	/**
	 * 文件大小
	 */
	private long size;

	/**
	 * 本地存储的文件绝对路径
	 */
	private String path;

	/**
	 * URL绝对路径
	 */
	private String url;

	public String getOriginalFilename() {
		return originalFilename;
	}

	public void setOriginalFilename(String originalFilename) {
		this.originalFilename = originalFilename;
	}

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public long getSize() {
		return size;
	}

	public void setSize(long size) {
		this.size = size;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy