Interface FileUploadService

  • All Superinterfaces:
    com.google.gwt.user.client.rpc.RemoteService
    All Known Implementing Classes:
    FileUploadServiceImpl

    @RemoteServiceRelativePath("jwt-fileupload")
    public interface FileUploadService
    extends com.google.gwt.user.client.rpc.RemoteService
    • Method Detail

      • prepareUpload

        String prepareUpload()
        Returns:
        uploadfileUuid for the Upload
      • upload

        void upload​(String uploadfileUuid,
                    String data)
             throws IOException
        Upload some data-parts to the Server
        Parameters:
        uploadfileUuid - UUID of the file, created by prepareUpload
        data - (complete data as dataurl, dataparts: 4byte-chunks (base64endocing))
        Throws:
        IOException
      • finish

        void finish​(String uploadfileUuid)
        Inform the server that all parts are send to the server
        Parameters:
        uploadfileUuid - UUID of the file, created by prepareUpload
      • cancel

        void cancel​(String uploadfileUuid)
        Cancel the Upload
        Parameters:
        uploadfileUuid - UUID of the file, created by prepareUpload