MultipartFormInputStream

MultiPartInputStream <p> Handle a MultiPart Mime input stream, breaking it up on the boundary into files and strings.

@see <a href="https://tools.ietf.org/html/rfc7578">https://tools.ietf.org/html/rfc7578</a>

Constructors

this
this(InputStream input, string contentType, MultipartConfig config, string contextTmpDir)

@param input Request input stream @param contentType Content-Type header @param config MultipartConfig @param contextTmpDir javax.servlet.context.tempdir

Members

Classes

Handler
class Handler
Undocumented in source.
MultiPart
class MultiPart
Undocumented in source.

Functions

deleteParts
void deleteParts()

Delete any tmp storage for parts, and clear out the parts list.

getPart
Part getPart(string name)

Get the named Part.

getParts
Part[] getParts()

Parse, if necessary, the multipart data and return the list of Parts.

isDeleteOnExit
bool isDeleteOnExit()
Undocumented in source. Be warned that the author may not have intended to support it.
isEmpty
bool isEmpty()

@return whether the list of parsed parts is empty

isWriteFilesWithFilenames
bool isWriteFilesWithFilenames()
Undocumented in source. Be warned that the author may not have intended to support it.
parse
void parse()

Parse, if necessary, the multipart stream.

setDeleteOnExit
void setDeleteOnExit(bool deleteOnExit)
Undocumented in source. Be warned that the author may not have intended to support it.
setWriteFilesWithFilenames
void setWriteFilesWithFilenames(bool writeFilesWithFilenames)
Undocumented in source. Be warned that the author may not have intended to support it.
throwIfError
void throwIfError()

Throws an exception if one has been latched.

Static variables

EMPTY_MAP
MultiMap!(Part) EMPTY_MAP;
Undocumented in source.
__DEFAULT_MULTIPART_CONFIG
MultipartConfig __DEFAULT_MULTIPART_CONFIG;
Undocumented in source.

Variables

_config
MultipartConfig _config;
Undocumented in source.
_contentType
string _contentType;
Undocumented in source.
_contextTmpDir
string _contextTmpDir;
Undocumented in source.
_deleteOnExit
bool _deleteOnExit;
Undocumented in source.
_err
Exception _err;
Undocumented in source.
_in
InputStream _in;
Undocumented in source.
_parsed
bool _parsed;
Undocumented in source.
_parts
MultiMap!(Part) _parts;
Undocumented in source.
_tmpDir
string _tmpDir;
Undocumented in source.
_writeFilesWithFilenames
bool _writeFilesWithFilenames;
Undocumented in source.

Meta