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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetContentType(@NonNull String contentType) voidsetMetadata(@NonNull Map<String, String> metadata) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getMetadatain interfaceUploadRequest- Returns:
- a map with key-value pairs to be stored along the file. An empty map by default.
-
setMetadata
- Specified by:
setMetadatain interfaceUploadRequest- Parameters:
metadata- a map with key-value pairs to be stored along the file.
-
setContentType
- Specified by:
setContentTypein interfaceUploadRequest- Parameters:
contentType- the content type of this upload request.
-