public class UploadedFile
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
UploadedFile() |
UploadedFile(java.lang.String id) |
UploadedFile(UploadedFile file) |
Modifier and Type | Method and Description |
---|---|
void |
addMetadata(java.lang.String key,
java.lang.String value) |
void |
clearData() |
java.lang.String |
getContentType() |
byte[] |
getFileBytes() |
java.lang.String |
getFileName() |
java.lang.String |
getHandler() |
java.lang.String |
getId() |
long |
getLength() |
java.util.Map<java.lang.String,java.lang.String> |
getMetadata() |
java.nio.file.Path |
getTmpLocation() |
java.util.Date |
getUploadTime() |
void |
setContentType(java.lang.String contentType) |
void |
setFileBytes(byte[] fileBytes) |
void |
setFileName(java.lang.String fileName) |
void |
setHandler(java.lang.String handler) |
void |
setId(java.lang.String id) |
void |
setLength(long length) |
void |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata) |
void |
setTmpLocation(java.nio.file.Path file) |
void |
setUploadTime(java.util.Date uploadTime) |
public UploadedFile()
public UploadedFile(java.lang.String id)
public UploadedFile(UploadedFile file)
public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
public java.lang.String getContentType()
public void setContentType(java.lang.String contentType)
public long getLength()
public void setLength(long length)
public byte[] getFileBytes()
public void setFileBytes(byte[] fileBytes)
public java.lang.String getId()
public void setId(java.lang.String id)
public java.lang.String getHandler()
public void setHandler(java.lang.String handler)
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void addMetadata(java.lang.String key, java.lang.String value)
public void setTmpLocation(java.nio.file.Path file)
public java.nio.file.Path getTmpLocation()
public void clearData()
public java.util.Date getUploadTime()
public void setUploadTime(java.util.Date uploadTime)