![JAR search and dependency download from the Maven repository](/logo.png)
it.eng.spago.util.UploadedFile Maven / Gradle / Ivy
/**
Copyright 2004, 2007 Engineering Ingegneria Informatica S.p.A.
This file is part of Spago.
Spago is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
any later version.
Spago is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Spago; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
**/
package it.eng.spago.util;
import java.io.Serializable;
/**
* Defines an UploadedFile
object.
*
* @author Zoppello
*
*/
public class UploadedFile implements Serializable {
private byte[] fileContent = null;
private String fileName = null;
private long sizeInBytes;
/**
* @return Returns the fieldNameInForm.
*/
public String getFieldNameInForm() {
return fieldNameInForm;
}
/**
* @param fieldNameInForm The fieldNameInForm to set.
*/
public void setFieldNameInForm(String fieldNameInForm) {
this.fieldNameInForm = fieldNameInForm;
}
/**
* @return Returns the fileContent.
*/
public byte[] getFileContent() {
return fileContent;
}
/**
* @param fileContent The fileContent to set.
*/
public void setFileContent(byte[] fileContent) {
this.fileContent = fileContent;
}
/**
* @return Returns the fileName.
*/
public String getFileName() {
return fileName;
}
/**
* @param fileName The fileName to set.
*/
public void setFileName(String fileName) {
this.fileName = fileName;
}
/**
* @return Returns the sizeInBytes.
*/
public long getSizeInBytes() {
return sizeInBytes;
}
/**
* @param sizeInBytes The sizeInBytes to set.
*/
public void setSizeInBytes(long sizeInBytes) {
this.sizeInBytes = sizeInBytes;
}
private String fieldNameInForm = null;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy