Class 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 method getNonComplianceWarnings()
    • Field Detail

      • __DEFAULT_MULTIPART_CONFIG

        public static final MultipartConfigElement __DEFAULT_MULTIPART_CONFIG
        Deprecated.
      • EMPTY_MAP

        public static final MultiMap<Part> EMPTY_MAP
        Deprecated.
    • Constructor Detail

      • MultiPartInputStreamParser

        public MultiPartInputStreamParser​(InputStream in,
                                          String contentType,
                                          MultipartConfigElement config,
                                          File contextTmpDir)
        Deprecated.
        Parameters:
        in - Request input stream
        contentType - Content-Type header
        config - MultipartConfigElement
        contextTmpDir - javax.servlet.context.tempdir
    • Method Detail

      • 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
      • setDeleteOnExit

        @Deprecated
        public void setDeleteOnExit​(boolean deleteOnExit)
        Deprecated.
        no replacement offered.
      • setWriteFilesWithFilenames

        public void setWriteFilesWithFilenames​(boolean writeFilesWithFilenames)
        Deprecated.
      • isWriteFilesWithFilenames

        public boolean isWriteFilesWithFilenames()
        Deprecated.
      • isDeleteOnExit

        @Deprecated
        public boolean isDeleteOnExit()
        Deprecated.
        no replacement offered.