Class SessionMultipartItem
java.lang.Object
fr.paris.lutece.plugins.workflow.modules.upload.services.SessionMultipartItem
- All Implemented Interfaces:
fr.paris.lutece.portal.service.upload.MultipartItem,Serializable
public class SessionMultipartItem
extends Object
implements fr.paris.lutece.portal.service.upload.MultipartItem, Serializable
Uploaded file kept in the HTTP session. The file stays where the upload put it (usually a temporary file) and its content
is only copied when the session is serialized: nothing is copied while the session stays in memory (one instance), and
the file follows the session when it is replicated to another instance.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSessionMultipartItem(fr.paris.lutece.portal.service.upload.MultipartItem item) Constructor -
Method Summary
-
Constructor Details
-
SessionMultipartItem
public SessionMultipartItem(fr.paris.lutece.portal.service.upload.MultipartItem item) Constructor- Parameters:
item- the uploaded item
-
-
Method Details
-
of
public static fr.paris.lutece.portal.service.upload.MultipartItem of(fr.paris.lutece.portal.service.upload.MultipartItem item) Wraps an item unless it is already kept in the session- Parameters:
item- the item- Returns:
- the item to keep in the session
-
getFieldName
- Specified by:
getFieldNamein interfacefr.paris.lutece.portal.service.upload.MultipartItem
-
getName
- Specified by:
getNamein interfacefr.paris.lutece.portal.service.upload.MultipartItem
-
getContentType
- Specified by:
getContentTypein interfacefr.paris.lutece.portal.service.upload.MultipartItem
-
getSize
public long getSize()- Specified by:
getSizein interfacefr.paris.lutece.portal.service.upload.MultipartItem
-
getInputStream
- Specified by:
getInputStreamin interfacefr.paris.lutece.portal.service.upload.MultipartItem- Throws:
IOException
-
get
- Specified by:
getin interfacefr.paris.lutece.portal.service.upload.MultipartItem- Throws:
UncheckedIOException
-
delete
- Specified by:
deletein interfacefr.paris.lutece.portal.service.upload.MultipartItem- Throws:
IOException
-