Top Description Fields Constructors Methods
org.apache.tomcat.util.http.fileupload.impl

public Class FileSizeLimitExceededException

extends SizeException
Class Inheritance

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

Field Summary

Modifier and TypeField and Description
private String
fieldName

Field name of the item, which caused the exception.

private String
fileName

File name of the item, which caused the exception.

private static final long

Constructor Summary

AccessConstructor and Description
public
FileSizeLimitExceededException(final String
The detail message.
message
,
final long
The actual request size.
actual
,
final long
The maximum permitted request size.
permitted
)

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

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

Field name, if known, or null.
getFieldName
()

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

public String

Returns:

File name, if known, or null.
getFileName
()

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

public void
setFieldName(final String
the field name of the item, which caused the exception.
pFieldName
)

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

public void
setFileName(final String
the file name of the item, which caused the exception.
pFileName
)

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

Inherited from org.apache.tomcat.util.http.fileupload.impl.SizeException:
getActualSizegetPermittedSize

Field Detail

fieldNameback to summary
private String fieldName

Field name of the item, which caused the exception.

fileNameback to summary
private String fileName

File name of the item, which caused the exception.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.apache.tomcat.util.http.fileupload.impl.SizeException.serialVersionUID.

The exceptions UID, for serializing an instance.

Constructor Detail

FileSizeLimitExceededExceptionback to summary
public FileSizeLimitExceededException(final String message, final long actual, final long permitted)

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

Parameters
message:String

The detail message.

actual:long

The actual request size.

permitted:long

The maximum permitted request size.

Method Detail

getFieldNameback to summary
public String getFieldName()

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

Returns:String

Field name, if known, or null.

getFileNameback to summary
public String getFileName()

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

Returns:String

File name, if known, or null.

setFieldNameback to summary
public void setFieldName(final String pFieldName)

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

Parameters
pFieldName:String

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

setFileNameback to summary
public void setFileName(final String pFileName)

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

Parameters
pFileName:String

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