java.lang.Object
cloud.piranha.extension.apache.fileupload.ApacheMultiPart
All Implemented Interfaces:
jakarta.servlet.http.Part

public class ApacheMultiPart extends Object implements jakarta.servlet.http.Part
The Part for the ApacheMultiPartManager.

This class implements the Servlet Part API and delegates to an Apache Commons FileItem for its functionality.

Author:
Manfred Riem ([email protected])
  • Constructor Details

    • ApacheMultiPart

      public ApacheMultiPart(org.apache.commons.fileupload.FileItem item)
      Constructor.
      Parameters:
      item - the file item.
  • Method Details

    • delete

      public void delete() throws IOException
      Specified by:
      delete in interface jakarta.servlet.http.Part
      Throws:
      IOException
      See Also:
      • Part.delete()
    • getContentType

      public String getContentType()
      Specified by:
      getContentType in interface jakarta.servlet.http.Part
      See Also:
      • Part.getContentType()
    • getHeader

      public String getHeader(String name)
      Specified by:
      getHeader in interface jakarta.servlet.http.Part
      See Also:
      • Part.getHeader(java.lang.String)
    • getHeaderNames

      public Collection<String> getHeaderNames()
      Specified by:
      getHeaderNames in interface jakarta.servlet.http.Part
      See Also:
      • Part.getHeaderNames()
    • getHeaders

      public Collection<String> getHeaders(String name)
      Specified by:
      getHeaders in interface jakarta.servlet.http.Part
      See Also:
      • Part.getHeaders(java.lang.String)
    • getInputStream

      public InputStream getInputStream() throws IOException
      Specified by:
      getInputStream in interface jakarta.servlet.http.Part
      Throws:
      IOException
      See Also:
      • Part.getInputStream()
    • getName

      public String getName()
      Specified by:
      getName in interface jakarta.servlet.http.Part
      See Also:
      • Part.getName()
    • getSize

      public long getSize()
      Specified by:
      getSize in interface jakarta.servlet.http.Part
      See Also:
      • Part.getSize()
    • getSubmittedFileName

      public String getSubmittedFileName()
      Specified by:
      getSubmittedFileName in interface jakarta.servlet.http.Part
      See Also:
      • Part.getSubmittedFileName()
    • write

      public void write(String filename) throws IOException
      Specified by:
      write in interface jakarta.servlet.http.Part
      Throws:
      IOException
      See Also:
      • Part.write(java.lang.String)