Class AbstractUploadRequest
java.lang.Object
io.micronaut.objectstorage.request.AbstractUploadRequest
- All Implemented Interfaces:
UploadRequest
- Direct Known Subclasses:
BytesUploadRequest
,FileUploadRequest
Base class for some
UploadRequest
implementations.- Since:
- 1.1.0
- Author:
- Álvaro Sánchez-Mariscal
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setContentType
(@NonNull String contentType) void
setMetadata
(@NonNull Map<String, String> metadata) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.objectstorage.request.UploadRequest
getContentSize, getContentType, getInputStream, getKey
-
Field Details
-
metadata
-
contentType
-
-
Constructor Details
-
AbstractUploadRequest
public AbstractUploadRequest()
-
-
Method Details
-
getMetadata
- Specified by:
getMetadata
in interfaceUploadRequest
- Returns:
- a map with key-value pairs to be stored along the file. An empty map by default.
-
setMetadata
- Specified by:
setMetadata
in interfaceUploadRequest
- Parameters:
metadata
- a map with key-value pairs to be stored along the file.
-
setContentType
- Specified by:
setContentType
in interfaceUploadRequest
- Parameters:
contentType
- the content type of this upload request.
-