Class StartedEvent

    • Constructor Detail

      • StartedEvent

        public StartedEvent​(Upload source,
                            String fileName,
                            String mimeType,
                            long contentLength)
        Create an instance of the event.
        Parameters:
        source - the source of the file
        fileName - the received file name
        mimeType - the MIME type of the received file
        contentLength - the length of the received file
    • Method Detail

      • getUpload

        public Upload getUpload()
        Upload where the event occurred.
        Returns:
        the source of the event
      • getFileName

        public String getFileName()
        Get the file name.
        Returns:
        the file name
      • getMIMEType

        public String getMIMEType()
        Get the MIME type of the file.
        Returns:
        the MIME type
      • getContentLength

        public long getContentLength()
        Get the length of the file.
        Returns:
        the length of the file that is being uploaded