Package org.eclipse.jetty.server
Class MultiPartInputStreamParser
java.lang.Object
org.eclipse.jetty.server.MultiPartInputStreamParser
Deprecated.
Replaced by org.eclipse.jetty.http.MultiPartFormInputStream
The code for MultiPartInputStream is slower than its replacement MultiPartFormInputStream. However
this class accepts formats non compliant the RFC that the new MultiPartFormInputStream does not accept.
MultiPartInputStream
Handle a MultiPart Mime input stream, breaking it up on the boundary into files and strings.
Non Compliance warnings are documented by the method
getNonComplianceWarnings()
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final javax.servlet.MultipartConfigElement
Deprecated.protected javax.servlet.MultipartConfigElement
Deprecated.protected String
Deprecated.protected File
Deprecated.protected Exception
Deprecated.protected InputStream
Deprecated.protected boolean
Deprecated.protected MultiMap<javax.servlet.http.Part>
Deprecated.protected File
Deprecated.protected boolean
Deprecated.static final MultiMap<javax.servlet.http.Part>
Deprecated. -
Constructor Summary
ConstructorDescriptionMultiPartInputStreamParser
(InputStream in, String contentType, javax.servlet.MultipartConfigElement config, File contextTmpDir) Deprecated.MultiPartInputStreamParser
(InputStream in, String contentType, javax.servlet.MultipartConfigElement config, File contextTmpDir, int maxParts) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Delete any tmp storage for parts, and clear out the parts list.Deprecated.Collection<javax.servlet.http.Part>
Deprecated.Get the already parsed parts.javax.servlet.http.Part
Deprecated.Get the named Part.Collection<javax.servlet.http.Part>
getParts()
Deprecated.Parse, if necessary, the multipart data and return the list of Parts.boolean
Deprecated.no replacement offered.boolean
Deprecated.protected void
parse()
Deprecated.Parse, if necessary, the multipart stream.void
setDeleteOnExit
(boolean deleteOnExit) Deprecated.no replacement offered.void
setWriteFilesWithFilenames
(boolean writeFilesWithFilenames) Deprecated.protected void
Deprecated.Throws an exception if one has been latched.
-
Field Details
-
__DEFAULT_MULTIPART_CONFIG
public static final javax.servlet.MultipartConfigElement __DEFAULT_MULTIPART_CONFIGDeprecated. -
EMPTY_MAP
Deprecated. -
_in
Deprecated. -
_config
protected javax.servlet.MultipartConfigElement _configDeprecated. -
_contentType
Deprecated. -
_parts
Deprecated. -
_err
Deprecated. -
_tmpDir
Deprecated. -
_contextTmpDir
Deprecated. -
_writeFilesWithFilenames
protected boolean _writeFilesWithFilenamesDeprecated. -
_parsed
protected boolean _parsedDeprecated.
-
-
Constructor Details
-
MultiPartInputStreamParser
public MultiPartInputStreamParser(InputStream in, String contentType, javax.servlet.MultipartConfigElement config, File contextTmpDir) Deprecated.- Parameters:
in
- Request input streamcontentType
- Content-Type headerconfig
- MultipartConfigElementcontextTmpDir
- javax.servlet.context.tempdir
-
MultiPartInputStreamParser
public MultiPartInputStreamParser(InputStream in, String contentType, javax.servlet.MultipartConfigElement config, File contextTmpDir, int maxParts) Deprecated.- Parameters:
in
- Request input streamcontentType
- Content-Type headerconfig
- MultipartConfigElementcontextTmpDir
- javax.servlet.context.tempdirmaxParts
- the maximum number of parts that can be parsed from the multipart content (0 for no parts allowed, -1 for unlimited parts).
-
-
Method Details
-
getNonComplianceWarnings
Deprecated.- Returns:
- an EnumSet of non compliances with the RFC that were accepted by this parser
-
getParsedParts
Deprecated.Get the already parsed parts.- Returns:
- the parts that were parsed
-
deleteParts
public void deleteParts()Deprecated.Delete any tmp storage for parts, and clear out the parts list. -
getParts
Deprecated.Parse, if necessary, the multipart data and return the list of Parts.- Returns:
- the parts
- Throws:
IOException
- if unable to get the parts
-
getPart
Deprecated.Get the named Part.- Parameters:
name
- the part name- Returns:
- the parts
- Throws:
IOException
- if unable to get the part
-
throwIfError
Deprecated.Throws an exception if one has been latched.- Throws:
IOException
- the exception (if present)
-
parse
protected void parse()Deprecated.Parse, if necessary, the multipart stream. -
setDeleteOnExit
Deprecated.no replacement offered. -
setWriteFilesWithFilenames
public void setWriteFilesWithFilenames(boolean writeFilesWithFilenames) Deprecated. -
isWriteFilesWithFilenames
public boolean isWriteFilesWithFilenames()Deprecated. -
isDeleteOnExit
Deprecated.no replacement offered.
-