@ProviderType
public class BlobDownloadOptions
extends java.lang.Object
BlobAccessProvider.getDownloadURI(Blob, BlobDownloadOptions)
.
This object is an internal corollary to org.apache.jackrabbit.api.binary.BinaryDownloadOptions
.
Modifier and Type | Field and Description |
---|---|
static BlobDownloadOptions |
DEFAULT |
Constructor and Description |
---|
BlobDownloadOptions(@Nullable java.lang.String mediaType,
@Nullable java.lang.String characterEncoding,
@Nullable java.lang.String fileName,
@NotNull java.lang.String dispositionType)
Creates new download options.
|
BlobDownloadOptions(@Nullable java.lang.String mediaType,
@Nullable java.lang.String characterEncoding,
@Nullable java.lang.String fileName,
@NotNull java.lang.String dispositionType,
boolean domainOverrideIgnored)
Creates new download options.
|
Modifier and Type | Method and Description |
---|---|
@Nullable java.lang.String |
getCharacterEncoding()
Returns the character encoding that should be assumed for the blob that
is to be downloaded.
|
@NotNull java.lang.String |
getDispositionType()
Returns the disposition type that should be assumed for the binary that
is to be downloaded.
|
@Nullable java.lang.String |
getFileName()
Returns the filename that should be assumed for the blob that is to be
downloaded.
|
@Nullable java.lang.String |
getMediaType()
Returns the internet media type that should be assumed for the blob
that is to be downloaded.
|
boolean |
isDomainOverrideIgnored()
Indicates whether the data store should ignore any provided download
domain override configuration value when generating the signed URI.
|
public static final BlobDownloadOptions DEFAULT
public BlobDownloadOptions(@Nullable @Nullable java.lang.String mediaType, @Nullable @Nullable java.lang.String characterEncoding, @Nullable @Nullable java.lang.String fileName, @NotNull @NotNull java.lang.String dispositionType)
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.public BlobDownloadOptions(@Nullable @Nullable java.lang.String mediaType, @Nullable @Nullable java.lang.String characterEncoding, @Nullable @Nullable java.lang.String fileName, @NotNull @NotNull java.lang.String dispositionType, boolean domainOverrideIgnored)
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.@Nullable public @Nullable java.lang.String getMediaType()
jcr:mimeType
.null
if no type has been
specified.@Nullable public @Nullable java.lang.String getCharacterEncoding()
jcr:encoding
.null
if no encoding has been
specified.@Nullable public @Nullable java.lang.String getFileName()
null
if no file name has been
specified.@NotNull public @NotNull java.lang.String getDispositionType()
public boolean isDomainOverrideIgnored()
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.