Class MultiPart.ChunksPart

java.lang.Object
org.eclipse.jetty.http.MultiPart.Part
org.eclipse.jetty.http.MultiPart.ChunksPart
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
MultiPart

public static class MultiPart.ChunksPart extends MultiPart.Part

A MultiPart.Part that holds its content in one or more Content.Chunks.

  • Constructor Details

    • ChunksPart

      public ChunksPart(String name, String fileName, HttpFields fields, List<org.eclipse.jetty.io.Content.Chunk> content)
  • Method Details

    • newContentSource

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

      Returns the content of this part as a new Content.Source

      If the content is reproducible, invoking this method multiple times will return a different independent instance for every invocation.

      If the content is not reproducible, subsequent calls to this method will return null.

      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:
      newContentSource in class MultiPart.Part
      Returns:
      the content of this part as a new Content.Source or null if the content cannot be consumed multiple times.
      See Also:
    • fail

      public void fail(Throwable t)
      Overrides:
      fail in class MultiPart.Part
    • toString

      public String toString()
      Overrides:
      toString in class Object