public class DataRecordDownloadOptions extends Object
| Modifier and Type | Field and Description |
|---|---|
static DataRecordDownloadOptions |
DEFAULT
Provides a default implementation of this class.
|
| Modifier and Type | Method and Description |
|---|---|
static DataRecordDownloadOptions |
fromBlobDownloadOptions(@NotNull org.apache.jackrabbit.oak.api.blob.BlobDownloadOptions downloadOptions)
Create an instance of this class directly from a
BlobDownloadOptions instance. |
@Nullable String |
getCharacterEncoding()
Returns the character encoding of this instance.
|
@Nullable String |
getContentDispositionHeader()
Generate the correct HTTP
Content-Disposition header value from
the fileName and dispositionType in this class, if set. |
@Nullable String |
getContentTypeHeader()
Generate the correct HTTP
Content-Type header value from the
mediaType and characterEncoding in this class, if set. |
@Nullable String |
getDispositionType()
Returns the disposition type of this instance.
|
@Nullable String |
getFileName()
Returns the file name of this instance.
|
@Nullable String |
getMediaType()
Returns the media type of this instance.
|
public static DataRecordDownloadOptions DEFAULT
public static DataRecordDownloadOptions fromBlobDownloadOptions(@NotNull @NotNull org.apache.jackrabbit.oak.api.blob.BlobDownloadOptions downloadOptions)
BlobDownloadOptions instance.downloadOptions - The download options to use to initialize this
instance.@Nullable public @Nullable String getContentTypeHeader()
Content-Type header value from the
mediaType and characterEncoding in this class, if set.
If mediaType has not been given a value, this method will return
null.
Content-Type header, or null if the mediaType has not been specified.@Nullable public @Nullable String getContentDispositionHeader()
Content-Disposition header value from
the fileName and dispositionType in this class, if set.
A value will be returned if the file name has been set, OR if the
disposition type has been explicitly set to "attachment". Otherwise
null will be returned.
Content-Disposition header, or
null if the fileName has not been specified and
the dispositionType has not been set to "attachment".@Nullable public @Nullable String getMediaType()
null if it has not been set.@Nullable public @Nullable String getCharacterEncoding()
null if it has not been set.@Nullable public @Nullable String getFileName()
null if it has not been set.@Nullable public @Nullable String getDispositionType()
null if it has not been set.Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.