Class CudamiFileResourcesBinaryClient
java.lang.Object
de.digitalcollections.cudami.client.CudamiFileResourcesBinaryClient
public class CudamiFileResourcesBinaryClient
extends java.lang.Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CudamiFileResourcesBinaryClient(java.lang.String serverUrl, com.fasterxml.jackson.databind.ObjectMapper mapper) -
Method Summary
Modifier and Type Method Description de.digitalcollections.model.api.identifiable.resource.FileResourcecreate()de.digitalcollections.model.api.identifiable.resource.FileResourceupload(byte[] bytes, java.lang.String filename, java.lang.String contentType)de.digitalcollections.model.api.identifiable.resource.FileResourceupload(java.io.InputStream inputStream, java.lang.String filename, java.lang.String contentType)
-
Field Details
-
Constructor Details
-
CudamiFileResourcesBinaryClient
public CudamiFileResourcesBinaryClient(java.lang.String serverUrl, com.fasterxml.jackson.databind.ObjectMapper mapper)
-
-
Method Details
-
create
public de.digitalcollections.model.api.identifiable.resource.FileResource create() -
upload
public de.digitalcollections.model.api.identifiable.resource.FileResource upload(java.io.InputStream inputStream, java.lang.String filename, java.lang.String contentType) throws HttpException- Throws:
HttpException
-
upload
public de.digitalcollections.model.api.identifiable.resource.FileResource upload(byte[] bytes, java.lang.String filename, java.lang.String contentType) throws HttpException- Throws:
HttpException
-