Package org.kawanfw.sql.api.server.blob
Class DefaultBlobUploadConfigurator
java.lang.Object
org.kawanfw.sql.api.server.blob.DefaultBlobUploadConfigurator
- All Implemented Interfaces:
BlobUploadConfigurator
public class DefaultBlobUploadConfigurator extends Object implements BlobUploadConfigurator
Class that allows uploading Blob/Clobs. Default implementation.
It is not required nor recommended to extend this class or to develop another
Extend this class and override
It is not required nor recommended to extend this class or to develop another
BlobUploadConfigurator
implementation. Extend this class and override
upload(HttpServletRequest, HttpServletResponse, File)
only if you
want to implement your own advanced upload mechanism with special features:
file chunking, recovery mechanisms, etc.- Author:
- Nicolas de Pomereu
-
Constructor Summary
Constructors Constructor Description DefaultBlobUploadConfigurator()
-
Method Summary
-
Constructor Details
-
DefaultBlobUploadConfigurator
public DefaultBlobUploadConfigurator()
-
-
Method Details
-
upload
public void upload(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, File blobDirectory) throws IOException, org.apache.tomcat.util.http.fileupload.FileUploadExceptionSimple upload of file into user directory.- Specified by:
upload
in interfaceBlobUploadConfigurator
- 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
-