Class FileUploadRequest
java.lang.Object
io.micronaut.objectstorage.request.AbstractUploadRequest
io.micronaut.objectstorage.request.FileUploadRequest
- All Implemented Interfaces:
UploadRequest
Upload request implementation using
File.-
Field Summary
Fields inherited from class AbstractUploadRequest
contentType, metadata -
Constructor Summary
ConstructorsConstructorDescriptionFileUploadRequest(@NonNull String keyName, @Nullable String contentType, @NonNull Path path, @NonNull Map<String, String> metadata) FileUploadRequest(@NonNull Path localFilePath) FileUploadRequest(@NonNull Path localFilePath, @NonNull String keyName, @Nullable String prefix, @Nullable String contentType) FileUploadRequest(@NonNull Path localFilePath, @Nullable String prefix) -
Method Summary
Methods inherited from class AbstractUploadRequest
getMetadata, setContentType, setMetadataMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface UploadRequest
getMetadata, setContentType, setMetadata
-
Constructor Details
-
FileUploadRequest
-
FileUploadRequest
-
FileUploadRequest
-
FileUploadRequest
-
-
Method Details
-
getFile
-
getPath
-
getAbsolutePath
-
getContentType
- Specified by:
getContentTypein interfaceUploadRequest- Returns:
- the content type of this upload request.
-
getKey
- Specified by:
getKeyin interfaceUploadRequest- Returns:
- the file name with path.
-
getContentSize
- Specified by:
getContentSizein interfaceUploadRequest- Returns:
- the size of the file, in bytes.
-
getInputStream
- Specified by:
getInputStreamin interfaceUploadRequest- Returns:
- an input stream of the object to be stored.
-