Class FileUploadBase.SizeException

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long actual
      The actual size of the request.
      private long permitted
      The maximum permitted size of the request.
      private static long serialVersionUID
      Serial version UID, being used, if serialized.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected SizeException​(java.lang.String message, long actual, long permitted)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getActualSize()
      Retrieves the actual size of the request.
      long getPermittedSize()
      Retrieves the permitted size of the request.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Serial version UID, being used, if serialized.
        See Also:
        Constant Field Values
      • actual

        private final long actual
        The actual size of the request.
      • permitted

        private final long permitted
        The maximum permitted size of the request.
    • Constructor Detail

      • SizeException

        protected SizeException​(java.lang.String message,
                                long actual,
                                long permitted)
        Creates a new instance.
        Parameters:
        message - The detail message.
        actual - The actual number of bytes in the request.
        permitted - The requests size limit, in bytes.
    • Method Detail

      • 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