Package org.eclipse.jetty.http
Class MultiPartFormInputStream
java.lang.Object
org.eclipse.jetty.http.MultiPartFormInputStream
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
MultiPartInputStream
Handle a MultiPart Mime input stream, breaking it up on the boundary into files and strings.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassDeprecated.static enumDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionMultiPartFormInputStream(InputStream in, String contentType, MultipartConfigElement config, File contextTmpDir) Deprecated.MultiPartFormInputStream(InputStream in, String contentType, MultipartConfigElement config, File contextTmpDir, int maxParts) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Delete any tmp storage for parts, and clear out the parts list.intDeprecated.Deprecated.Deprecated.Deprecated.Get the named Part.getParts()Deprecated.Parse, if necessary, the multipart data and return the list of Parts.booleanDeprecated.no replacement providedbooleanisEmpty()Deprecated.booleanDeprecated.voidsetBufferSize(int bufferSize) Deprecated.voidsetDeleteOnExit(boolean deleteOnExit) Deprecated.no replacement provided.voidsetWriteFilesWithFilenames(boolean writeFilesWithFilenames) Deprecated.
-
Constructor Details
-
MultiPartFormInputStream
public MultiPartFormInputStream(InputStream in, String contentType, MultipartConfigElement config, File contextTmpDir) Deprecated.- Parameters:
in- Request input streamcontentType- Content-Type headerconfig- MultipartConfigElementcontextTmpDir- javax.servlet.context.tempdir
-
MultiPartFormInputStream
public MultiPartFormInputStream(InputStream in, String contentType, 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
-
isEmpty
public boolean isEmpty()Deprecated.- Returns:
- whether the list of parsed parts is empty
-
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
-
setDeleteOnExit
Deprecated.no replacement provided. -
setWriteFilesWithFilenames
public void setWriteFilesWithFilenames(boolean writeFilesWithFilenames) Deprecated. -
isWriteFilesWithFilenames
public boolean isWriteFilesWithFilenames()Deprecated. -
isDeleteOnExit
Deprecated.no replacement provided -
getBufferSize
public int getBufferSize()Deprecated.- Returns:
- the size of buffer used to read data from the input stream
-
setBufferSize
public void setBufferSize(int bufferSize) Deprecated.- Parameters:
bufferSize- the size of buffer used to read data from the input stream
-