Interface BlobUploadConfigurator

All Known Implementing Classes:
DefaultBlobUploadConfigurator

public interface BlobUploadConfigurator
Interface that defines the upload method that will do the effective Blob/Clob upload.
The DefaultBlobUploadConfigurator default implementation is fully functional.
Create your own implementation only if you want to implement your own advanced upload mechanism with special features: file chunking, recovery mechanisms, etc.
Author:
Nicolas de Pomereu
  • Method Summary

    Modifier and Type Method Description
    void upload​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, File blobDirectory)
    Method that will do the effective upload.
  • Method Details

    • upload

      void upload​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, File blobDirectory) throws IOException, org.apache.tomcat.util.http.fileupload.FileUploadException
      Method that will do the effective upload.
      Parameters:
      request - the http servlet request
      response - the http servlet response to use to write the out stream on. The underlying output stream must *not* be closed at end of download, because it can be reused to send error message to client side after this method execution.
      blobDirectory - the directory into which the blob must be uploaded
      Throws:
      IOException - if any I/O exception occurs during the upload
      org.apache.tomcat.util.http.fileupload.FileUploadException - if any exception during upload