Class PresignedUpload

java.lang.Object
io.micronaut.objectstorage.response.PresignedUpload

public final class PresignedUpload extends Object
A complete pre-signed HTTP request that can upload a single object.
Since:
3.0.0
  • Constructor Details

    • PresignedUpload

      public PresignedUpload(@NonNull URI uri, @NonNull String method, @NonNull Map<String, List<String>> headers, @NonNull Instant expiration)
      Parameters:
      uri - the signed target URI
      method - the HTTP method the caller must use
      headers - the required request headers
      expiration - the point in time when this request expires
  • Method Details

    • getUri

      public @NonNull URI getUri()
      Returns:
      the signed target URI
    • getMethod

      public @NonNull String getMethod()
      Returns:
      the HTTP method the caller must use
    • getHeaders

      public @NonNull Map<String, List<String>> getHeaders()
      Returns:
      the required request headers
    • getExpiration

      public @NonNull Instant getExpiration()
      Returns:
      when the signed request expires