Package io.jmix.ui.sys.vaadin
Class JmixVaadinServletService.JmixFileUploadHandler
java.lang.Object
com.vaadin.server.communication.FileUploadHandler
io.jmix.ui.sys.vaadin.JmixVaadinServletService.JmixFileUploadHandler
- All Implemented Interfaces:
com.vaadin.server.RequestHandler
,Serializable
- Enclosing class:
- JmixVaadinServletService
protected static class JmixVaadinServletService.JmixFileUploadHandler
extends com.vaadin.server.communication.FileUploadHandler
Add support for
JmixFileUpload
component with XHR upload mechanism.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.server.communication.FileUploadHandler
com.vaadin.server.communication.FileUploadHandler.SimpleMultiPartInputStream, com.vaadin.server.communication.FileUploadHandler.UploadInterruptedException
-
Field Summary
Fields inherited from class com.vaadin.server.communication.FileUploadHandler
DEFAULT_STREAMING_PROGRESS_EVENT_INTERVAL_MS, MULTIPART_BOUNDARY_LINE_LIMIT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isSuitableUploadComponent
(com.vaadin.server.ClientConnector source) protected void
sendUploadResponse
(com.vaadin.server.VaadinRequest request, com.vaadin.server.VaadinResponse response, String fileName, long contentLength) Methods inherited from class com.vaadin.server.communication.FileUploadHandler
doHandleSimpleMultipartFileUpload, doHandleXhrFilePost, getProgressEventInterval, handleRequest, streamToReceiver
-
Constructor Details
-
JmixFileUploadHandler
protected JmixFileUploadHandler()
-
-
Method Details
-
isSuitableUploadComponent
protected boolean isSuitableUploadComponent(com.vaadin.server.ClientConnector source) - Overrides:
isSuitableUploadComponent
in classcom.vaadin.server.communication.FileUploadHandler
-
sendUploadResponse
protected void sendUploadResponse(com.vaadin.server.VaadinRequest request, com.vaadin.server.VaadinResponse response, String fileName, long contentLength) throws IOException - Overrides:
sendUploadResponse
in classcom.vaadin.server.communication.FileUploadHandler
- Throws:
IOException
-