All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ge.jbizmo.jbizmo-commons-avro.10.0.0.source-code.FileHandling.avdl Maven / Gradle / Ivy

The newest version!
/**
 * Definition of data structures and operations for uploading and downloading files
 */
@namespace("net.sourceforge.jbizmo.commons.avro.file")
protocol FileHandlingProtocol {

  import idl "ResponseStatus.avdl";

  // Record that contains data for file upload operations
  record UploadFileRequest 
  {
    string fileName;
    union {string, null} path;
   	bytes content; 
  }

  // Record that contains data for file download operations
  record DownloadFileRequest 
  {
    string path;
    int startIndex;
    int size;
  }

  // Data that is contained in a file upload response message
  record UploadFileResponse 
  {
    net.sourceforge.jbizmo.commons.avro.response.ResponseStatus responseStatus;
    union {null, string} path = null;
  }

  // Data that is contained in a file download response message
  record DowloadFileResponse 
  {
    net.sourceforge.jbizmo.commons.avro.response.ResponseStatus responseStatus;
    union {null, bytes} content = null;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy