Class MultipartPart
- java.lang.Object
-
- org.apache.hc.client5.http.entity.mime.MultipartPart
-
- Direct Known Subclasses:
FormBodyPart
public class MultipartPart extends java.lang.Object
MultipartPart class represents a content body that can be used as a part of multipart encoded entities. This class automatically populates the header with standard fields based on the content description of the enclosed body.- Since:
- 5.0
-
-
Field Summary
Fields Modifier and Type Field Description private ContentBody
body
private Header
header
-
Constructor Summary
Constructors Constructor Description MultipartPart(ContentBody body, Header header)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addField(java.lang.String name, java.lang.String value)
(package private) void
addField(MimeField field)
ContentBody
getBody()
Header
getHeader()
-
-
-
Field Detail
-
header
private final Header header
-
body
private final ContentBody body
-
-
Constructor Detail
-
MultipartPart
MultipartPart(ContentBody body, Header header)
-
-
Method Detail
-
getBody
public ContentBody getBody()
-
getHeader
public Header getHeader()
-
addField
void addField(java.lang.String name, java.lang.String value)
-
addField
void addField(MimeField field)
-
-