Class MultiPart.PathPart

java.lang.Object
org.eclipse.jetty.http.MultiPart.Part
org.eclipse.jetty.http.MultiPart.PathPart
Enclosing class:
MultiPart

public static class MultiPart.PathPart extends MultiPart.Part

A MultiPart.Part whose content is in a file.

  • Constructor Details

  • Method Details

    • getPath

      public Path getPath()
    • getContent

      public org.eclipse.jetty.io.Content.Source getContent()
      Description copied from class: MultiPart.Part

      Returns the content of this part.

      The content type and content encoding are specified in this part's headers.

      The content encoding may be specified by the part named _charset_, as specified in RFC 7578, section 4.6.

      Specified by:
      getContent in class MultiPart.Part
      Returns:
      the content of this part
    • writeTo

      public void writeTo(Path path) throws IOException
      Description copied from class: MultiPart.Part

      Writes the content of this part to the given path.

      Overrides:
      writeTo in class MultiPart.Part
      Parameters:
      path - the Path to write this part's content to
      Throws:
      IOException - if the write fails
    • delete

      public void delete()
    • toString

      public String toString()
      Overrides:
      toString in class Object