public class UploadInfo extends Object implements Serializable
| Constructor and Description |
|---|
UploadInfo(AttachmentKey uploadId,
long maxFileSize,
int maxFileCount,
Collection<String> allowedFileTypes,
TemporaryAttachmentPersistenceHandlerSupplier persistenceHandlerSupplier) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAllowedFileTypes() |
long |
getLastAccess() |
int |
getMaxFileCount() |
long |
getMaxFileSize() |
TemporaryAttachmentPersistenceHandlerSupplier |
getPersistenceHandlerSupplier() |
AttachmentKey |
getUploadId() |
boolean |
isFileTypeAllowed(String mimeTypeOrExtension) |
long |
lastAccess() |
UploadInfo |
setLastAccess(long lastAccess) |
String |
toString() |
UploadInfo |
touch() |
public UploadInfo(AttachmentKey uploadId, long maxFileSize, int maxFileCount, Collection<String> allowedFileTypes, TemporaryAttachmentPersistenceHandlerSupplier persistenceHandlerSupplier)
public boolean isFileTypeAllowed(String mimeTypeOrExtension)
public long lastAccess()
public UploadInfo touch()
public AttachmentKey getUploadId()
public long getMaxFileSize()
public int getMaxFileCount()
public long getLastAccess()
public UploadInfo setLastAccess(long lastAccess)
public TemporaryAttachmentPersistenceHandlerSupplier getPersistenceHandlerSupplier()
Copyright © 2017. All rights reserved.