You're viewing an older version of Vaadin JavaDoc. Please see version 24.8.0 for the latest.
com.vaadin.external.apache.commons.fileupload2.pub.

Class FileSizeLimitExceededException

All Implemented Interfaces:

Serializable

public class FileSizeLimitExceededException extends FileUploadException

Thrown to indicate that A files size exceeds the configured maximum.

See Also:

  • Constructor Details

    • FileSizeLimitExceededException

      public FileSizeLimitExceededException(String message, long actual, long permitted)

      Constructs a SizeExceededException with the specified detail message, and actual and permitted sizes.

      Parameters:

      message - The detail message.

      actual - The actual request size.

      permitted - The maximum permitted request size.

  • Method Details

    • getFileName

      public String getFileName()

      Returns the file name of the item, which caused the exception.

      Returns:

      File name, if known, or null.

    • setFileName

      public void setFileName(String pFileName)

      Sets the file name of the item, which caused the exception.

      Parameters:

      pFileName - the file name of the item, which caused the exception.

    • getFieldName

      public String getFieldName()

      Returns the field name of the item, which caused the exception.

      Returns:

      Field name, if known, or null.

    • setFieldName

      public void setFieldName(String pFieldName)

      Sets the field name of the item, which caused the exception.

      Parameters:

      pFieldName - the field name of the item, which caused the exception.

    • getActualSize

      public long getActualSize()

      Retrieves the actual size of the request.

      Returns:

      The actual size of the request.

      Since:

      1.3

    • getPermittedSize

      public long getPermittedSize()

      Retrieves the permitted size of the request.

      Returns:

      The permitted size of the request.

      Since:

      1.3