public class FileStorageImpl extends Object implements FileStorage, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
| Modifier and Type | Field and Description |
|---|---|
static String |
PROVIDER_NAME |
| Constructor and Description |
|---|
FileStorageImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
StoredFileObject |
delete(String filename) |
void |
destroy() |
StoredFileObject |
findByStoredFilename(String filename) |
StoredFileObject |
findByStoredFilename(String filename,
String downloadUrl) |
String |
getName() |
boolean |
isMetadataSupported() |
StoreFileResponse |
store(byte[] bytes,
StoreFileRequest request) |
StoreFileResponse |
store(File file,
StoreFileRequest request) |
StoreFileResponse |
store(InputStream inputStream,
StoreFileRequest request) |
public static final String PROVIDER_NAME
public String getName()
getName in interface FileStoragepublic boolean isMetadataSupported()
isMetadataSupported in interface FileStoragepublic StoreFileResponse store(InputStream inputStream, StoreFileRequest request) throws StoreFileException
store in interface FileStorageStoreFileExceptionpublic StoreFileResponse store(File file, StoreFileRequest request) throws StoreFileException
store in interface FileStorageStoreFileExceptionpublic StoreFileResponse store(byte[] bytes, StoreFileRequest request) throws StoreFileException
store in interface FileStorageStoreFileExceptionpublic StoredFileObject findByStoredFilename(String filename)
findByStoredFilename in interface FileStoragepublic StoredFileObject findByStoredFilename(String filename, String downloadUrl)
findByStoredFilename in interface FileStoragepublic StoredFileObject delete(String filename)
delete in interface FileStoragepublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic void destroy()
destroy in interface org.springframework.beans.factory.DisposableBeanCopyright © 2020. All rights reserved.