Class MultiPart.ContentSourcePart

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

public static class MultiPart.ContentSourcePart extends MultiPart.Part

A MultiPart.Part whose content is a Content.Source.

  • Constructor Details

    • ContentSourcePart

      public ContentSourcePart(String name, String fileName, HttpFields fields, org.eclipse.jetty.io.Content.Source content)
  • Method Details

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

      public String toString()
      Overrides:
      toString in class Object