Top Description Methods
javax.portlet.annotations

public @Interface Multipart

extends Annotation
Annotations
@Retention:RUNTIME
@Target:ANNOTATION_TYPE
Imports
java.lang.annotation.Retention, .Target

This annotation is used within composite portlet configuration annotations to add multipart configuration information. This is the portlet analog of the javax.servlet.annotation.MultipartConfig annotation.

This annotation cannot be used as a stand-alone portlet annotation.

Since
3.0
See Also
javax.servlet.annotation.MultipartConfig

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

The file size threshold
fileSizeThreshold
()

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

Returns:

The directory location
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.
public boolean

Returns:

true if multipart forms are supported; false otherwise.
supported
()

Flag indicating if the portlet supports multipart forms.
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 file size threshold

locationback to summary
public String location()

The directory location where files will be stored.
Returns:String

The directory location

maxFileSizeback to summary
public long maxFileSize()

The maximum size allowed for uploaded files.
Returns:long

The maximum size allowed for uploaded files

maxRequestSizeback to summary
public long maxRequestSize()

The maximum size allowed for multipart/form-data requests.
Returns:long

The maximum size allowed for multipart/form-data requests

supportedback to summary
public boolean supported()

Flag indicating if the portlet supports multipart forms. Must be set to true to activate multipart forms support.
Returns:boolean

true if multipart forms are supported; false otherwise.