Class PathBody

java.lang.Object
org.apache.http.entity.mime.content.AbstractContentBody
org.eclipse.cbi.maven.http.apache.PathBody
All Implemented Interfaces:
org.apache.http.entity.mime.content.ContentBody, org.apache.http.entity.mime.content.ContentDescriptor

final class PathBody extends org.apache.http.entity.mime.content.AbstractContentBody
Binary body part backed by a path.
See Also:
  • MultipartEntityBuilder
  • Field Details

    • path

      private final Path path
  • Constructor Details

    • PathBody

      PathBody(Path path)
    • PathBody

      public PathBody(Path path, String contentType)
  • Method Details

    • getFilename

      public String getFilename()
    • writeTo

      public void writeTo(OutputStream outstream) throws IOException
      Throws:
      IOException
    • getTransferEncoding

      public String getTransferEncoding()
    • getContentLength

      public long getContentLength()