| org.restlet.ext.fileupload.RestletFileUpload
RestletFileUpload | public class RestletFileUpload extends FileUpload (Code) | | High level API for processing file uploads. This class handles multiple files
per single HTML widget, sent using multipart/mixed encoding type, as
specified by RFC 1867. Use parseRequest(Call) to acquire a list of FileItems
associated with a given HTML widget.How the data for individual parts is
stored is determined by the factory used to create them; a given part may be
in memory, on disk, or somewhere else.
author: Jerome Louvel (contact@noelios.com) |
Constructor Summary | |
public | RestletFileUpload() Constructs an uninitialised instance of this class. | public | RestletFileUpload(FileItemFactory fileItemFactory) Constructs an instance of this class which uses the supplied factory to
create FileItem instances. |
Method Summary | |
public List<FileItem> | parseRepresentation(Representation multipartForm) Processes an RFC 1867
compliant multipart/form-data input representation.
Parameters: multipartForm - The multipart representation to be parsed. | public List<FileItem> | parseRequest(Request request) Processes an RFC 1867
compliant multipart/form-data input representation.
Parameters: request - The request containing the entity to be parsed. |
RestletFileUpload | public RestletFileUpload(FileItemFactory fileItemFactory)(Code) | | Constructs an instance of this class which uses the supplied factory to
create FileItem instances.
See Also: RestletFileUpload.RestletFileUpload |
parseRepresentation | public List<FileItem> parseRepresentation(Representation multipartForm) throws FileUploadException(Code) | | Processes an RFC 1867
compliant multipart/form-data input representation.
Parameters: multipartForm - The multipart representation to be parsed. A list of FileItem instances parsed, in the orderthat they were transmitted. throws: FileUploadException - if there are problems reading/parsing the request or storingfiles. |
parseRequest | public List<FileItem> parseRequest(Request request) throws FileUploadException(Code) | | Processes an RFC 1867
compliant multipart/form-data input representation.
Parameters: request - The request containing the entity to be parsed. A list of FileItem instances parsed, in the orderthat they were transmitted. throws: FileUploadException - if there are problems reading/parsing the request or storingfiles. |
|
|