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, long maxBlobLength)
    Method that will do the effective upload.
  • Method Details

    • upload

      void upload​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, File blobDirectory, long maxBlobLength) 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
      maxBlobLength - the maximum length authorized for of a Blob to be uploaded. 0 means there is no limit.
      Throws:
      IOException - if any I/O exception occurs during the upload
      org.apache.tomcat.util.http.fileupload.FileUploadException - if any exception during upload