Package org.eclipse.jetty.util
Class MultiPartInputStreamParser
- java.lang.Object
-
- org.eclipse.jetty.util.MultiPartInputStreamParser
-
@Deprecated public class MultiPartInputStreamParser extends Object
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 methodgetNonComplianceWarnings()
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classMultiPartInputStreamParser.MultiPartDeprecated.static classMultiPartInputStreamParser.NonComplianceDeprecated.
-
Field Summary
Fields Modifier and Type Field Description static MultipartConfigElement__DEFAULT_MULTIPART_CONFIGDeprecated.protected MultipartConfigElement_configDeprecated.protected String_contentTypeDeprecated.protected File_contextTmpDirDeprecated.protected boolean_deleteOnExitDeprecated.protected Exception_errDeprecated.protected InputStream_inDeprecated.protected boolean_parsedDeprecated.protected MultiMap<Part>_partsDeprecated.protected File_tmpDirDeprecated.protected boolean_writeFilesWithFilenamesDeprecated.static MultiMap<Part>EMPTY_MAPDeprecated.
-
Constructor Summary
Constructors Constructor Description MultiPartInputStreamParser(InputStream in, String contentType, MultipartConfigElement config, File contextTmpDir)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddeleteParts()Deprecated.Delete any tmp storage for parts, and clear out the parts list.EnumSet<MultiPartInputStreamParser.NonCompliance>getNonComplianceWarnings()Deprecated.Collection<Part>getParsedParts()Deprecated.Get the already parsed parts.PartgetPart(String name)Deprecated.Get the named Part.Collection<Part>getParts()Deprecated.Parse, if necessary, the multipart data and return the list of Parts.booleanisDeleteOnExit()Deprecated.booleanisWriteFilesWithFilenames()Deprecated.protected voidparse()Deprecated.Parse, if necessary, the multipart stream.voidsetDeleteOnExit(boolean deleteOnExit)Deprecated.voidsetWriteFilesWithFilenames(boolean writeFilesWithFilenames)Deprecated.protected voidthrowIfError()Deprecated.Throws an exception if one has been latched.
-
-
-
Field Detail
-
__DEFAULT_MULTIPART_CONFIG
public static final MultipartConfigElement __DEFAULT_MULTIPART_CONFIG
Deprecated.
-
_in
protected InputStream _in
Deprecated.
-
_config
protected MultipartConfigElement _config
Deprecated.
-
_contentType
protected String _contentType
Deprecated.
-
_err
protected Exception _err
Deprecated.
-
_tmpDir
protected File _tmpDir
Deprecated.
-
_contextTmpDir
protected File _contextTmpDir
Deprecated.
-
_deleteOnExit
protected boolean _deleteOnExit
Deprecated.
-
_writeFilesWithFilenames
protected boolean _writeFilesWithFilenames
Deprecated.
-
_parsed
protected boolean _parsed
Deprecated.
-
-
Constructor Detail
-
MultiPartInputStreamParser
public MultiPartInputStreamParser(InputStream in, String contentType, MultipartConfigElement config, File contextTmpDir)
Deprecated.- Parameters:
in- Request input streamcontentType- Content-Type headerconfig- MultipartConfigElementcontextTmpDir- javax.servlet.context.tempdir
-
-
Method Detail
-
getNonComplianceWarnings
public EnumSet<MultiPartInputStreamParser.NonCompliance> getNonComplianceWarnings()
Deprecated.- Returns:
- an EnumSet of non compliances with the RFC that were accepted by this parser
-
getParsedParts
public Collection<Part> 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
public Collection<Part> getParts() throws IOException
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
public Part getPart(String name) throws IOException
Deprecated.Get the named Part.- Parameters:
name- the part name- Returns:
- the parts
- Throws:
IOException- if unable to get the part
-
throwIfError
protected void throwIfError() throws IOExceptionDeprecated.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
public void setDeleteOnExit(boolean deleteOnExit)
Deprecated.
-
setWriteFilesWithFilenames
public void setWriteFilesWithFilenames(boolean writeFilesWithFilenames)
Deprecated.
-
isWriteFilesWithFilenames
public boolean isWriteFilesWithFilenames()
Deprecated.
-
isDeleteOnExit
public boolean isDeleteOnExit()
Deprecated.
-
-