Class BlobDownloadOptions

    • Constructor Detail

      • BlobDownloadOptions

        public BlobDownloadOptions​(@Nullable
                                   @Nullable String mediaType,
                                   @Nullable
                                   @Nullable String characterEncoding,
                                   @Nullable
                                   @Nullable String fileName,
                                   @NotNull
                                   @NotNull String dispositionType)
        Creates new download options.
        Parameters:
        mediaType - the internet media type for the blob.
        characterEncoding - the character encoding for the blob.
        fileName - the file name for the blob.
        dispositionType - the disposition type.
      • BlobDownloadOptions

        public BlobDownloadOptions​(@Nullable
                                   @Nullable String mediaType,
                                   @Nullable
                                   @Nullable String characterEncoding,
                                   @Nullable
                                   @Nullable String fileName,
                                   @NotNull
                                   @NotNull String dispositionType,
                                   boolean domainOverrideIgnored)
        Creates new download options.
        Parameters:
        mediaType - the internet media type for the blob.
        characterEncoding - the character encoding for the blob.
        fileName - the file name for the blob.
        dispositionType - the disposition type.
        domainOverrideIgnored - true if any configured domain override should be ignored when generating URIs; false otherwise.
    • Method Detail

      • getMediaType

        @Nullable
        public @Nullable String getMediaType()
        Returns the internet media type that should be assumed for the blob that is to be downloaded. This value should be a valid jcr:mimeType.
        Returns:
        The internet media type, or null if no type has been specified.
      • getCharacterEncoding

        @Nullable
        public @Nullable String getCharacterEncoding()
        Returns the character encoding that should be assumed for the blob that is to be downloaded. This value should be a valid jcr:encoding.
        Returns:
        The character encoding, or null if no encoding has been specified.
      • getFileName

        @Nullable
        public @Nullable String getFileName()
        Returns the filename that should be assumed for the blob that is to be downloaded.
        Returns:
        The file name, or null if no file name has been specified.
      • getDispositionType

        @NotNull
        public @NotNull String getDispositionType()
        Returns the disposition type that should be assumed for the binary that is to be downloaded. The default value of this setting is "inline".
        Returns:
        The disposition type.
        See Also:
        RFC 6266, Section 4.2
      • isDomainOverrideIgnored

        public boolean isDomainOverrideIgnored()
        Indicates whether the data store should ignore any provided download domain override configuration value when generating the signed URI.
        Returns:
        true if the domain override should be ignored; false otherwise.