Uses of Class
io.odilon.client.error.ODClientException
Packages that use 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
Methods in io.odilon.client that throw ODClientExceptionModifier and TypeMethodDescriptionvoidODClient.addServiceRequest(String requestClass) voidODClient.close()voidOdilonClient.close()Shutdown Isn't Necessary because the threads and connections that are held will be released automatically if they remain idlevoidODClient.createBucket(String bucketName) voidOdilonClient.createBucket(String bucketName) Creates a newBucket.voidODClient.deleteAllBucketVersions(String bucketName) voidOdilonClient.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).voidODClient.deleteBucket(String bucketName) voidOdilonClient.deleteBucket(String bucketName) Deletes aBucket.voidODClient.deleteObject(String bucketName, String objectName) Removes an object from a bucket.voidOdilonClient.deleteObject(String bucketName, String objectName) Removes an Object from aBucket.voidODClient.deleteObjectAllVersions(String bucketName, String objectName) voidOdilonClient.deleteObjectAllVersions(String bucketName, String objectName) Deletes all the Object's previous versions, it does not delete the object current version (head version).booleanODClient.existsBucket(String bucketName) booleanOdilonClient.existsBucket(String bucketName) Returnstrueif a bucket with namebucketNameexistsbooleanODClient.existsObject(String bucketName, String objectName) booleanOdilonClient.existsObject(String bucketName, String objectName) Checks for the existence of an Object.io.odilon.model.Bucketio.odilon.model.BucketReturns theBucketGets entire object's data asInputStreamin given bucket.voidGets object's data and stores it to given file name.Returns the binary data (File) of this ObjectvoidRetrieves the binary data of this Object and saves it to aFilewith pathfilePathio.odilon.model.ObjectMetadataODClient.getObjectMetadata(String bucketName, String objectName) ReturnsObjectMetadataof given object in given bucket.io.odilon.model.ObjectMetadataOdilonClient.getObjectMetadata(String bucketName, String objectName) Returns theObjectMetadataof the Object.io.odilon.model.ObjectMetadataODClient.getObjectMetadataPreviousVersion(String bucketName, String objectName) ReturnsObjectMetadataof previous versionio.odilon.model.ObjectMetadataOdilonClient.getObjectMetadataPreviousVersion(String bucketName, String objectName) ReturnsObjectMetadataof the version immediately previous to the head version, ornullif 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 ornullif 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 #versionof the object's ornullif 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 authenticationbooleanODClient.hasVersions(String bucketName, String objectName) booleanOdilonClient.hasVersions(String bucketName, String objectName) Returnstrueif the Object has previous versions, ie.booleanbooleanReturnstrueif the bucket has no Objects, otherwisefalsebooleanODClient.isVersionControl()booleanOdilonClient.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) Itemis a wrapper for Lists and otherIterablestructures of T where some elements may not be a T but an error.
Tmust 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.MetricsValuesODClient.metrics()io.odilon.model.MetricsValuesOdilonClient.metrics()Returns an instance ofMetricsValueswith info related to the activity of the serverio.odilon.model.ObjectMetadataUploads theFilefile to the serverio.odilon.model.ObjectMetadataODClient.putObject(String bucketName, String objectName, Optional<List<String>> customTags, File file) io.odilon.model.ObjectMetadataUploads a File or any other binary stream to the server.io.odilon.model.ObjectMetadataOdilonClient.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.ObjectMetadataODClient.putObjectStream(String bucketName, String objectName, InputStream stream, String fileName) io.odilon.model.ObjectMetadataODClient.putObjectStream(String bucketName, String objectName, InputStream stream, String fileName, String contentType) io.odilon.model.ObjectMetadataODClient.putObjectStream(String bucketName, String objectName, InputStream stream, Optional<String> fileName, Optional<Long> size) io.odilon.model.ObjectMetadataODClient.putObjectStream(String bucketName, String objectName, InputStream stream, Optional<String> fileName, Optional<Long> size, Optional<String> contentType) io.odilon.model.ObjectMetadataODClient.putObjectStream(String bucketName, String objectName, InputStream stream, Optional<String> fileName, Optional<Long> size, Optional<String> contentType, Optional<List<String>> customTags) io.odilon.model.ObjectMetadataOdilonClient.putObjectStream(String bucketName, String objectName, InputStream stream, String fileName) Uploads a File or any other binary stream to the server.io.odilon.model.ObjectMetadataOdilonClient.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.ObjectMetadataOdilonClient.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.ObjectMetadataOdilonClient.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.ObjectMetadataOdilonClient.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.voidODClient.renameBucket(String bucketName, String newBucketName) voidOdilonClient.renameBucket(String bucketName, String newBucketName) Renames aBucket.voidODClient.restoreObjectPreviousVersions(String bucketName, String objectName) voidOdilonClient.restoreObjectPreviousVersions(String bucketName, String objectName) Restores the previous version of the Object and deletes current version.io.odilon.model.SystemInfoODClient.systemInfo()ReturnsSystemInfoio.odilon.model.SystemInfoOdilonClient.systemInfo()Returns an instance ofSystemInfowith the info of the settings of the server -
Uses of ODClientException in io.odilon.client.http.multipart
Methods in io.odilon.client.http.multipart that throw ODClientExceptionModifier and TypeMethodDescription<T> THttpRequest.exchange(HttpEntity requestEntity, com.fasterxml.jackson.core.type.TypeReference<T> responseType)