Class MultiPartInputStreamLegacyParser
java.lang.Object
org.eclipse.jetty.ee9.nested.MultiPartInputStreamLegacyParser
- All Implemented Interfaces:
 org.eclipse.jetty.ee9.nested.MultiPart.Parser
@Deprecated(forRemoval=true,
            since="10.0.10")
public class MultiPartInputStreamLegacyParser
extends Object
implements org.eclipse.jetty.ee9.nested.MultiPart.Parser
Deprecated, for removal: This API element is subject to removal in a future version.
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
Nested ClassesModifier and TypeClassDescriptionclassDeprecated, for removal: This API element is subject to removal in a future version. - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final jakarta.servlet.MultipartConfigElementDeprecated, for removal: This API element is subject to removal in a future version.protected jakarta.servlet.MultipartConfigElementDeprecated, for removal: This API element is subject to removal in a future version.protected StringDeprecated, for removal: This API element is subject to removal in a future version.protected FileDeprecated, for removal: This API element is subject to removal in a future version.protected ExceptionDeprecated, for removal: This API element is subject to removal in a future version.protected InputStreamDeprecated, for removal: This API element is subject to removal in a future version.protected booleanDeprecated, for removal: This API element is subject to removal in a future version.protected MultiMap<jakarta.servlet.http.Part> Deprecated, for removal: This API element is subject to removal in a future version.protected FileDeprecated, for removal: This API element is subject to removal in a future version.protected booleanDeprecated, for removal: This API element is subject to removal in a future version.static final MultiMap<jakarta.servlet.http.Part> Deprecated, for removal: This API element is subject to removal in a future version. - 
Constructor Summary
ConstructorsConstructorDescriptionMultiPartInputStreamLegacyParser(MultiPartCompliance multiPartCompliance, InputStream in, String contentType, jakarta.servlet.MultipartConfigElement config, File contextTmpDir, int maxParts) Deprecated, for removal: This API element is subject to removal in a future version. - 
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated, for removal: This API element is subject to removal in a future version.Delete any tmp storage for parts, and clear out the parts list.Deprecated, for removal: This API element is subject to removal in a future version.Collection<jakarta.servlet.http.Part> Deprecated, for removal: This API element is subject to removal in a future version.Get the already parsed parts.jakarta.servlet.http.PartDeprecated, for removal: This API element is subject to removal in a future version.Get the named Part.Collection<jakarta.servlet.http.Part> getParts()Deprecated, for removal: This API element is subject to removal in a future version.Parse, if necessary, the multipart data and return the list of Parts.booleanDeprecated.no replacement offered.booleanDeprecated, for removal: This API element is subject to removal in a future version.protected voidparse()Deprecated, for removal: This API element is subject to removal in a future version.Parse, if necessary, the multipart stream.voidsetDeleteOnExit(boolean deleteOnExit) Deprecated.no replacement offered.voidsetWriteFilesWithFilenames(boolean writeFilesWithFilenames) Deprecated, for removal: This API element is subject to removal in a future version.protected voidDeprecated, for removal: This API element is subject to removal in a future version.Throws an exception if one has been latched. 
- 
Field Details
- 
__DEFAULT_MULTIPART_CONFIG
public static final jakarta.servlet.MultipartConfigElement __DEFAULT_MULTIPART_CONFIGDeprecated, for removal: This API element is subject to removal in a future version. - 
EMPTY_MAP
Deprecated, for removal: This API element is subject to removal in a future version. - 
_in
Deprecated, for removal: This API element is subject to removal in a future version. - 
_config
protected jakarta.servlet.MultipartConfigElement _configDeprecated, for removal: This API element is subject to removal in a future version. - 
_contentType
Deprecated, for removal: This API element is subject to removal in a future version. - 
_parts
Deprecated, for removal: This API element is subject to removal in a future version. - 
_err
Deprecated, for removal: This API element is subject to removal in a future version. - 
_tmpDir
Deprecated, for removal: This API element is subject to removal in a future version. - 
_contextTmpDir
Deprecated, for removal: This API element is subject to removal in a future version. - 
_writeFilesWithFilenames
protected boolean _writeFilesWithFilenamesDeprecated, for removal: This API element is subject to removal in a future version. - 
_parsed
protected boolean _parsedDeprecated, for removal: This API element is subject to removal in a future version. 
 - 
 - 
Constructor Details
- 
MultiPartInputStreamLegacyParser
public MultiPartInputStreamLegacyParser(MultiPartCompliance multiPartCompliance, InputStream in, String contentType, jakarta.servlet.MultipartConfigElement config, File contextTmpDir, int maxParts) Deprecated, for removal: This API element is subject to removal in a future version.- 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, for removal: This API element is subject to removal in a future version.- Specified by:
 getNonComplianceWarningsin interfaceorg.eclipse.jetty.ee9.nested.MultiPart.Parser- Returns:
 - an EnumSet of non compliances with the RFC that were accepted by this parser
 
 - 
getParsedParts
Deprecated, for removal: This API element is subject to removal in a future version.Get the already parsed parts.- Returns:
 - the parts that were parsed
 
 - 
deleteParts
public void deleteParts()Deprecated, for removal: This API element is subject to removal in a future version.Delete any tmp storage for parts, and clear out the parts list.- Specified by:
 deletePartsin interfaceorg.eclipse.jetty.ee9.nested.MultiPart.Parser
 - 
getParts
Deprecated, for removal: This API element is subject to removal in a future version.Parse, if necessary, the multipart data and return the list of Parts.- Specified by:
 getPartsin interfaceorg.eclipse.jetty.ee9.nested.MultiPart.Parser- Returns:
 - the parts
 - Throws:
 IOException- if unable to get the parts
 - 
getPart
Deprecated, for removal: This API element is subject to removal in a future version.Get the named Part.- Specified by:
 getPartin interfaceorg.eclipse.jetty.ee9.nested.MultiPart.Parser- Parameters:
 name- the part name- Returns:
 - the parts
 - Throws:
 IOException- if unable to get the part
 - 
throwIfError
Deprecated, for removal: This API element is subject to removal in a future version.Throws an exception if one has been latched.- Throws:
 IOException- the exception (if present)
 - 
parse
protected void parse()Deprecated, for removal: This API element is subject to removal in a future version.Parse, if necessary, the multipart stream. - 
setDeleteOnExit
Deprecated.no replacement offered. - 
setWriteFilesWithFilenames
public void setWriteFilesWithFilenames(boolean writeFilesWithFilenames) Deprecated, for removal: This API element is subject to removal in a future version. - 
isWriteFilesWithFilenames
public boolean isWriteFilesWithFilenames()Deprecated, for removal: This API element is subject to removal in a future version. - 
isDeleteOnExit
Deprecated.no replacement offered. 
 - 
 
MultiPartFormInputStream. This code is slower and subject to more bugs than its replacementMultiPartFormInputStream. However, this class accepts non-compliant RFC formats that the newMultiPartFormInputStreamdoes not accept. This class is unavailable on ee10 and newer environments.