Top Description Methods
javax.servlet.annotation

public @Interface MultipartConfig

extends Annotation
Annotations
@Target:TYPE
@Retention:RUNTIME
Imports
java.lang.annotation.Target, .ElementType, .Retention, .RetentionPolicy

Annotation that may be specified on a javax.servlet.Servlet class, indicating that instances of the Servlet expect requests that conform to the multipart/form-data MIME type.

Servlets annotated with MultipartConfig may retrieve the javax.servlet.http.Part components of a given multipart/form-data request by calling getPart or getParts.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the size threshold after which the file will be written to disk
fileSizeThreshold
()

The size threshold after which the file will be written to disk

public String

Returns:

the directory location where files will be stored
location
()

The directory location where files will be stored

public long

Returns:

the maximum size allowed for uploaded files
maxFileSize
()

The maximum size allowed for uploaded files.

public long

Returns:

the maximum size allowed for multipart/form-data requests
maxRequestSize
()

The maximum size allowed for multipart/form-data requests

The default is -1L, which means unlimited.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

fileSizeThresholdback to summary
public int fileSizeThreshold()

The size threshold after which the file will be written to disk

Returns:int

the size threshold after which the file will be written to disk

locationback to summary
public String location()

The directory location where files will be stored

Returns:String

the directory location where files will be stored

maxFileSizeback to summary
public long maxFileSize()

The maximum size allowed for uploaded files.

The default is -1L, which means unlimited.

Returns:long

the maximum size allowed for uploaded files

maxRequestSizeback to summary
public long maxRequestSize()

The maximum size allowed for multipart/form-data requests

The default is -1L, which means unlimited.

Returns:long

the maximum size allowed for multipart/form-data requests