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, long maxBlobLength) 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 uploadedmaxBlobLength
- 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 uploadorg.apache.tomcat.util.http.fileupload.FileUploadException
- if any exception during upload
-