Package org.apache.jackrabbit.api.binary
Class BinaryUploadOptions
java.lang.Object
org.apache.jackrabbit.api.binary.BinaryUploadOptions
Specifies the options to be used when requesting direct upload URIs via
JackrabbitValueFactory.initiateBinaryUpload(long, int, BinaryUploadOptions)
.
To specify upload options, obtain a BinaryUploadOptions.BinaryUploadOptionsBuilder
via the builder()
method, then specify the options desired and
get the object via BinaryUploadOptions.BinaryUploadOptionsBuilder.build()
.
If no options are needed, use DEFAULT
which
instructs the implementation to use the service provider default behavior.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Used to build an instance ofBinaryUploadOptions
with the options set as desired by the caller. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BinaryUploadOptions
Provides a default instance of this class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull BinaryUploadOptions.BinaryUploadOptionsBuilder
builder()
Returns aBinaryUploadOptions.BinaryUploadOptionsBuilder
instance to be used for creating an instance of this class.boolean
Indicates whether the option to ignore any configured domain override setting has been specified.
-
Field Details
-
DEFAULT
Provides a default instance of this class. This instance enforces the proper default behaviors for the options.
-
-
Method Details
-
isDomainOverrideIgnored
public boolean isDomainOverrideIgnored()Indicates whether the option to ignore any configured domain override setting has been specified.- Returns:
- true if the domain override should be ignored; false otherwise.
The default behavior is
false
, meaning that any configured domain override setting should be honored.
-
builder
Returns aBinaryUploadOptions.BinaryUploadOptionsBuilder
instance to be used for creating an instance of this class.- Returns:
- A builder instance.
-