Class CudamiFileResourcesBinaryClient

java.lang.Object
de.digitalcollections.cudami.client.identifiable.resource.CudamiFileResourcesBinaryClient

public class CudamiFileResourcesBinaryClient
extends java.lang.Object
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected com.fasterxml.jackson.databind.ObjectMapper mapper  
    protected java.net.URI serverUri  
  • 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.identifiable.resource.FileResource create()  
    de.digitalcollections.model.identifiable.resource.FileResource upload​(byte[] bytes, java.lang.String filename, java.lang.String contentType)  
    de.digitalcollections.model.identifiable.resource.FileResource upload​(java.io.InputStream inputStream, java.lang.String filename, java.lang.String contentType)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • mapper

      protected final com.fasterxml.jackson.databind.ObjectMapper mapper
    • serverUri

      protected final java.net.URI serverUri
  • Constructor Details

    • CudamiFileResourcesBinaryClient

      public CudamiFileResourcesBinaryClient​(java.lang.String serverUrl, com.fasterxml.jackson.databind.ObjectMapper mapper)
  • Method Details

    • create

      public de.digitalcollections.model.identifiable.resource.FileResource create()
    • upload

      public de.digitalcollections.model.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.identifiable.resource.FileResource upload​(byte[] bytes, java.lang.String filename, java.lang.String contentType) throws HttpException
      Throws:
      HttpException