Package org.kawanfw.sql.api.server.blob
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
Create your own implementation only if you want to implement your own advanced upload mechanism with special features: file chunking, recovery mechanisms, etc.
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
-
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.FileUploadExceptionMethod that will do the effective upload.- Parameters:
request
- the http servlet requestresponse
- 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 uploadorg.apache.tomcat.util.http.fileupload.FileUploadException
- if any exception during upload
-