play.data.parsing
类 ApacheMultipartParser.SizeException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 org.apache.commons.fileupload.FileUploadException
              继承者 play.data.parsing.ApacheMultipartParser.SizeException
所有已实现的接口:
java.io.Serializable
包容类:
ApacheMultipartParser

protected abstract static class ApacheMultipartParser.SizeException
extends FileUploadException

This exception is thrown, if a requests permitted size is exceeded.

另请参见:
序列化表格

构造方法摘要
protected ApacheMultipartParser.SizeException(java.lang.String message, long actual, long permitted)
          Creates a new instance.
 
方法摘要
 long getActualSize()
          Retrieves the actual size of the request.
 long getPermittedSize()
          Retrieves the permitted size of the request.
 
从类 org.apache.commons.fileupload.FileUploadException 继承的方法
getCause, printStackTrace, printStackTrace
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

ApacheMultipartParser.SizeException

protected ApacheMultipartParser.SizeException(java.lang.String message,
                                              long actual,
                                              long permitted)
Creates a new instance.

参数:
message - The detail message.
actual - The actual number of bytes in the request.
permitted - The requests size limit, in bytes.
方法详细信息

getActualSize

public long getActualSize()
Retrieves the actual size of the request.

返回:
The actual size of the request.

getPermittedSize

public long getPermittedSize()
Retrieves the permitted size of the request.

返回:
The permitted size of the request.


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly