Package org.eclipse.jetty.http
Class MultiPartFormInputStream
- java.lang.Object
-
- org.eclipse.jetty.http.MultiPartFormInputStream
-
@Deprecated(since="2021-05-27") public class MultiPartFormInputStream extends java.lang.Object
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.MultiPartInputStreamHandle a MultiPart Mime input stream, breaking it up on the boundary into files and strings.
- See Also:
- https://tools.ietf.org/html/rfc7578
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
MultiPartFormInputStream.MultiPart
Deprecated.
-
Constructor Summary
Constructors Constructor Description MultiPartFormInputStream(java.io.InputStream in, java.lang.String contentType, MultipartConfigElement config, java.io.File contextTmpDir)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
deleteParts()
Deprecated.Delete any tmp storage for parts, and clear out the parts list.int
getBufferSize()
Deprecated.java.util.Collection<Part>
getParsedParts()
Deprecated.Part
getPart(java.lang.String name)
Deprecated.Get the named Part.java.util.Collection<Part>
getParts()
Deprecated.Parse, if necessary, the multipart data and return the list of Parts.boolean
isDeleteOnExit()
Deprecated.no replacement providedboolean
isEmpty()
Deprecated.boolean
isWriteFilesWithFilenames()
Deprecated.void
setBufferSize(int bufferSize)
Deprecated.void
setDeleteOnExit(boolean deleteOnExit)
Deprecated.no replacement provided.void
setWriteFilesWithFilenames(boolean writeFilesWithFilenames)
Deprecated.
-
-
-
Constructor Detail
-
MultiPartFormInputStream
public MultiPartFormInputStream(java.io.InputStream in, java.lang.String contentType, MultipartConfigElement config, java.io.File contextTmpDir)
Deprecated.- Parameters:
in
- Request input streamcontentType
- Content-Type headerconfig
- MultipartConfigElementcontextTmpDir
- javax.servlet.context.tempdir
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
Deprecated.- Returns:
- whether the list of parsed parts is empty
-
getParsedParts
@Deprecated public java.util.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 java.util.Collection<Part> getParts() throws java.io.IOException
Deprecated.Parse, if necessary, the multipart data and return the list of Parts.- Returns:
- the parts
- Throws:
java.io.IOException
- if unable to get the parts
-
getPart
public Part getPart(java.lang.String name) throws java.io.IOException
Deprecated.Get the named Part.- Parameters:
name
- the part name- Returns:
- the parts
- Throws:
java.io.IOException
- if unable to get the part
-
setDeleteOnExit
@Deprecated public void setDeleteOnExit(boolean deleteOnExit)
Deprecated.no replacement provided.
-
setWriteFilesWithFilenames
public void setWriteFilesWithFilenames(boolean writeFilesWithFilenames)
Deprecated.
-
isWriteFilesWithFilenames
public boolean isWriteFilesWithFilenames()
Deprecated.
-
isDeleteOnExit
@Deprecated public boolean 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
-
-