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

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JmixFileUploadHandler

      protected JmixFileUploadHandler()
  • Method Details

    • isSuitableUploadComponent

      protected boolean isSuitableUploadComponent(com.vaadin.server.ClientConnector source)
      Overrides:
      isSuitableUploadComponent in class com.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 class com.vaadin.server.communication.FileUploadHandler
      Throws:
      IOException