Class GenericPart

java.lang.Object
br.ufsc.labsec.web.GenericPart
All Implemented Interfaces:
jakarta.servlet.http.Part

public class GenericPart
extends Object
implements jakarta.servlet.http.Part
  • Constructor Details

    • GenericPart

      public GenericPart​(String name)
  • Method Details

    • getInputStream

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

      public void setInputStream​(InputStream stream)
    • getContentType

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

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

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

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

      public void write​(String s) throws IOException
      Specified by:
      write in interface jakarta.servlet.http.Part
      Throws:
      IOException
    • delete

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

      public String getHeader​(String s)
      Specified by:
      getHeader in interface jakarta.servlet.http.Part
    • getHeaders

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

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