Uses of Class
io.odilon.client.error.ODClientException
Package
Description
The Interface
OdilonClient
contains the API to interact with the Server, the Implementation class is ODClient
.Utility classes used by
ODClient
for POST Multipart using Java HTTTP client.-
Uses of ODClientException in io.odilon.client
Modifier and TypeMethodDescriptionvoid
ODClient.addServiceRequest
(String requestClass) void
ODClient.close()
void
OdilonClient.close()
Shutdown Isn't Necessary because the threads and connections that are held will be released automatically if they remain idlevoid
ODClient.createBucket
(String bucketName) void
OdilonClient.createBucket
(String bucketName) Creates a newBucket
.void
ODClient.deleteAllBucketVersions
(String bucketName) void
OdilonClient.deleteAllBucketVersions
(String bucketName) Deletes all the previous versions of all the Objects in theBucket
.
Note that it does not delete the current version of the objects (called head version).void
ODClient.deleteBucket
(String bucketName) void
OdilonClient.deleteBucket
(String bucketName) Deletes aBucket
.void
ODClient.deleteObject
(String bucketName, String objectName) Removes an object from a bucket.void
OdilonClient.deleteObject
(String bucketName, String objectName) Removes an Object from aBucket
.void
ODClient.deleteObjectAllVersions
(String bucketName, String objectName) void
OdilonClient.deleteObjectAllVersions
(String bucketName, String objectName) Deletes all the Object's previous versions, it does not delete the object current version (head version).boolean
ODClient.existsBucket
(String bucketName) boolean
OdilonClient.existsBucket
(String bucketName) Returnstrue
if a bucket with namebucketName
existsboolean
ODClient.existsObject
(String bucketName, String objectName) boolean
OdilonClient.existsObject
(String bucketName, String objectName) Checks for the existence of an Object.io.odilon.model.Bucket
io.odilon.model.Bucket
Returns theBucket
Gets entire object's data asInputStream
in given bucket.void
Gets object's data and stores it to given file name.Returns the binary data (File) of this Objectvoid
Retrieves the binary data of this Object and saves it to aFile
with pathfilePath
io.odilon.model.ObjectMetadata
ODClient.getObjectMetadata
(String bucketName, String objectName) ReturnsObjectMetadata
of given object in given bucket.io.odilon.model.ObjectMetadata
OdilonClient.getObjectMetadata
(String bucketName, String objectName) Returns theObjectMetadata
of the Object.io.odilon.model.ObjectMetadata
ODClient.getObjectMetadataPreviousVersion
(String bucketName, String objectName) ReturnsObjectMetadata
of previous versionio.odilon.model.ObjectMetadata
OdilonClient.getObjectMetadataPreviousVersion
(String bucketName, String objectName) ReturnsObjectMetadata
of the version immediately previous to the head version, ornull
if there is no previous versionList<io.odilon.model.ObjectMetadata>
ODClient.getObjectMetadataPreviousVersionAll
(String bucketName, String objectName) Returns all previous versions of an Object, sorted by version numberList<io.odilon.model.ObjectMetadata>
OdilonClient.getObjectMetadataPreviousVersionAll
(String bucketName, String objectName) Returns all the previous versions of an Object, the current version (head version) is not included in the List returnedODClient.getObjectPreviousVersion
(String bucketName, String objectName) OdilonClient.getObjectPreviousVersion
(String bucketName, String objectName) Returns the binary data of the object's previous version ornull
if there is no previous version.ODClient.getObjectVersion
(String bucketName, String objectName, int version) get InputStream of the version passed as parameter, null if head is version 0 parameter is non existent or previous versions were wipedOdilonClient.getObjectVersion
(String bucketName, String objectName, int version) Returns the binary data of the version #version
of the object's ornull
if the object does not have a version #version
.ODClient.getPresignedObjectUrl
(String bucketName, String objectName) Returns an presigned URL to download the binary object with default expiry time.ODClient.getPresignedObjectUrl
(String bucketName, String objectName, Optional<Integer> expires) A presigned URL is a way to grant temporary access to an Object, for example in an HTML webpage.ODClient.getPresignedObjectUrl
(String bucketName, String objectName, Optional<Integer> expires, Map<String, String> reqParams) A presigned URL is a way to grant temporary access to an Object, for example in an HTML webpage.OdilonClient.getPresignedObjectUrl
(String bucketName, String objectName) Returns a temporary URL to access or download the binary data of an Object without authenticationOdilonClient.getPresignedObjectUrl
(String bucketName, String objectName, Optional<Integer> expiresInSeconds) Returns a temporary URL to access or download the binary data of an Object without authenticationboolean
ODClient.hasVersions
(String bucketName, String objectName) boolean
OdilonClient.hasVersions
(String bucketName, String objectName) Returnstrue
if the Object has previous versions, ie.boolean
boolean
Returnstrue
if the bucket has no Objects, otherwisefalse
boolean
ODClient.isVersionControl()
boolean
OdilonClient.isVersionControl()
Checks if the server has version control enabledList<io.odilon.model.Bucket>
ODClient.listBuckets()
Returns all buckets, sorted alphabeticallyList<io.odilon.model.Bucket>
OdilonClient.listBuckets()
Returns all buckets, sorted alphabeticallyio.odilon.model.list.ResultSet<io.odilon.model.list.Item<io.odilon.model.ObjectMetadata>>
ODClient.listObjects
(io.odilon.model.Bucket bucket) io.odilon.model.list.ResultSet<io.odilon.model.list.Item<io.odilon.model.ObjectMetadata>>
ODClient.listObjects
(String bucketName) Item
is a wrapper for Lists and otherIterable
structures of T where some elements may not be a T but an error.
T
must be Serializableio.odilon.model.list.ResultSet<io.odilon.model.list.Item<io.odilon.model.ObjectMetadata>>
ODClient.listObjects
(String bucketName, String prefix) io.odilon.model.list.ResultSet<io.odilon.model.list.Item<io.odilon.model.ObjectMetadata>>
io.odilon.model.list.ResultSet<io.odilon.model.list.Item<io.odilon.model.ObjectMetadata>>
OdilonClient.listObjects
(io.odilon.model.Bucket bucket) Lists the objects in theBucket
.io.odilon.model.list.ResultSet<io.odilon.model.list.Item<io.odilon.model.ObjectMetadata>>
OdilonClient.listObjects
(String bucketName) Lists the objects in theBucket
.io.odilon.model.list.ResultSet<io.odilon.model.list.Item<io.odilon.model.ObjectMetadata>>
OdilonClient.listObjects
(String bucketName, String prefix) Lists the objects in theBucket
.io.odilon.model.list.ResultSet<io.odilon.model.list.Item<io.odilon.model.ObjectMetadata>>
Lists the objects in theBucket
.io.odilon.model.MetricsValues
ODClient.metrics()
io.odilon.model.MetricsValues
OdilonClient.metrics()
Returns an instance ofMetricsValues
with info related to the activity of the serverio.odilon.model.ObjectMetadata
Uploads theFile
file to the serverio.odilon.model.ObjectMetadata
ODClient.putObject
(String bucketName, String objectName, Optional<List<String>> customTags, File file) io.odilon.model.ObjectMetadata
Uploads a File or any other binary stream to the server.io.odilon.model.ObjectMetadata
OdilonClient.putObject
(String bucketName, String objectName, Optional<List<String>> customTags, File file) Uploads a File or any other binary stream to the server.io.odilon.model.ObjectMetadata
ODClient.putObjectStream
(String bucketName, String objectName, InputStream stream, String fileName) io.odilon.model.ObjectMetadata
ODClient.putObjectStream
(String bucketName, String objectName, InputStream stream, String fileName, String contentType) io.odilon.model.ObjectMetadata
ODClient.putObjectStream
(String bucketName, String objectName, InputStream stream, Optional<String> fileName, Optional<Long> size) io.odilon.model.ObjectMetadata
ODClient.putObjectStream
(String bucketName, String objectName, InputStream stream, Optional<String> fileName, Optional<Long> size, Optional<String> contentType) io.odilon.model.ObjectMetadata
ODClient.putObjectStream
(String bucketName, String objectName, InputStream stream, Optional<String> fileName, Optional<Long> size, Optional<String> contentType, Optional<List<String>> customTags) io.odilon.model.ObjectMetadata
OdilonClient.putObjectStream
(String bucketName, String objectName, InputStream stream, String fileName) Uploads a File or any other binary stream to the server.io.odilon.model.ObjectMetadata
OdilonClient.putObjectStream
(String bucketName, String objectName, InputStream stream, String fileName, String contentType) Uploads a File or any other binary stream to the server.io.odilon.model.ObjectMetadata
OdilonClient.putObjectStream
(String bucketName, String objectName, InputStream stream, Optional<String> fileName, Optional<Long> size) Uploads a File or any other binary stream to the server.io.odilon.model.ObjectMetadata
OdilonClient.putObjectStream
(String bucketName, String objectName, InputStream stream, Optional<String> fileName, Optional<Long> size, Optional<String> contentType) Uploads a InputStream to the server.io.odilon.model.ObjectMetadata
OdilonClient.putObjectStream
(String bucketName, String objectName, InputStream stream, Optional<String> fileName, Optional<Long> size, Optional<String> contentType, Optional<List<String>> customTags) Uploads a File or any other binary stream to the server.void
ODClient.renameBucket
(String bucketName, String newBucketName) void
OdilonClient.renameBucket
(String bucketName, String newBucketName) Renames aBucket
.void
ODClient.restoreObjectPreviousVersions
(String bucketName, String objectName) void
OdilonClient.restoreObjectPreviousVersions
(String bucketName, String objectName) Restores the previous version of the Object and deletes current version.io.odilon.model.SystemInfo
ODClient.systemInfo()
ReturnsSystemInfo
io.odilon.model.SystemInfo
OdilonClient.systemInfo()
Returns an instance ofSystemInfo
with the info of the settings of the server -
Uses of ODClientException in io.odilon.client.http.multipart
Modifier and TypeMethodDescription<T> T
HttpRequest.exchange
(HttpEntity requestEntity, com.fasterxml.jackson.core.type.TypeReference<T> responseType)