Class WorkspaceClient

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response bulkGetObjects​(java.lang.String containerName, java.util.List<java.lang.String> objectURIs)  
      void checkStatus()
      Check the status from the service
      void checkStatus​(javax.ws.rs.core.MultivaluedHashMap<java.lang.String,​java.lang.Object> headers)
      Check the status from the service used to passe "X-SSL-CLIENT-CERT" header that contain a pem certificate
      void close()
      Close the underneath http client
      void compress​(java.lang.String containerName, CompressInformation compressInformation)  
      java.lang.String computeObjectDigest​(java.lang.String containerName, java.lang.String objectName, DigestType algo)  
      void consumeAnyEntityAndClose​(javax.ws.rs.core.Response response)
      Helper when an error occurs on client usage side to consume response however
      void createContainer​(java.lang.String containerName)  
      void createFolder​(java.lang.String containerName, java.lang.String folderName)  
      void deleteContainer​(java.lang.String containerName, boolean deleteRecursive)  
      void deleteFolder​(java.lang.String containerName, java.lang.String folderName)  
      void deleteObject​(java.lang.String containerName, java.lang.String objectName)  
      javax.ws.rs.client.Client getChunkedClient()  
      javax.ws.rs.client.Client getClient()  
      VitamClientFactory<?> getClientFactory()  
      RequestResponse<java.util.Map<java.lang.String,​FileParams>> getFilesWithParamsFromFolder​(java.lang.String containerName, java.lang.String folderName)  
      com.fasterxml.jackson.databind.JsonNode getFreespacePercent()  
      RequestResponse<java.util.List<java.net.URI>> getListUriDigitalObjectFromFolder​(java.lang.String containerName, java.lang.String folderName)  
      javax.ws.rs.core.Response getObject​(java.lang.String containerName, java.lang.String objectName)  
      javax.ws.rs.core.Response getObject​(java.lang.String containerName, java.lang.String objectName, long offset, java.lang.Long maxChunkSize)  
      java.lang.String getResourcePath()
      Get the resource path of the server.
      java.lang.String getServiceUrl()
      Get the service URL
      boolean isExistingContainer​(java.lang.String containerName)  
      boolean isExistingFolder​(java.lang.String containerName, java.lang.String folderName)  
      boolean isExistingObject​(java.lang.String containerName, java.lang.String objectName)  
      javax.ws.rs.core.Response make​(VitamRequestBuilder request)  
      javax.ws.rs.core.Response makeSpecifyingUrl​(VitamRequestBuilder request)  
      void purgeOldFilesInContainer​(java.lang.String containerName, TimeToLive timeToLive)  
      void putAtomicObject​(java.lang.String containerName, java.lang.String objectName, java.io.InputStream stream, long size)  
      void putObject​(java.lang.String containerName, java.lang.String objectName, java.io.InputStream stream)  
      void putObject​(java.lang.String containerName, java.lang.String objectName, java.lang.Object object)  
      static void staticConsumeAnyEntityAndClose​(javax.ws.rs.core.Response response)
      This method consume everything (in particular InputStream) and close the response.
      java.lang.String toString()  
      void uncompressObject​(java.lang.String containerName, java.lang.String folderName, java.lang.String archiveType, java.io.InputStream inputStreamObject)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait