Class AbstractUploadRequest

java.lang.Object
io.micronaut.objectstorage.request.AbstractUploadRequest
All Implemented Interfaces:
UploadRequest
Direct Known Subclasses:
BytesUploadRequest, FileUploadRequest

@Internal public abstract class AbstractUploadRequest extends Object implements UploadRequest
Base class for some UploadRequest implementations.
Since:
1.1.0
Author:
Álvaro Sánchez-Mariscal
  • Field Details

    • metadata

      @NonNull protected @NonNull Map<String,String> metadata
    • contentType

      @Nullable protected @Nullable String contentType
  • Constructor Details

    • AbstractUploadRequest

      public AbstractUploadRequest()
  • Method Details

    • getMetadata

      @NonNull public @NonNull Map<String,String> getMetadata()
      Specified by:
      getMetadata in interface UploadRequest
      Returns:
      a map with key-value pairs to be stored along the file. An empty map by default.
    • setMetadata

      public void setMetadata(@NonNull @NonNull Map<String,String> metadata)
      Specified by:
      setMetadata in interface UploadRequest
      Parameters:
      metadata - a map with key-value pairs to be stored along the file.
    • setContentType

      public void setContentType(@NonNull @NonNull String contentType)
      Specified by:
      setContentType in interface UploadRequest
      Parameters:
      contentType - the content type of this upload request.