Class FormBodyPart
- java.lang.Object
-
- org.apache.hc.client5.http.entity.mime.MultipartPart
-
- org.apache.hc.client5.http.entity.mime.FormBodyPart
-
public class FormBodyPart extends MultipartPart
FormBodyPart 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:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
name
-
Constructor Summary
Constructors Constructor Description FormBodyPart(java.lang.String name, ContentBody body, Header header)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addField(java.lang.String name, java.lang.String value)
java.lang.String
getName()
-
Methods inherited from class org.apache.hc.client5.http.entity.mime.MultipartPart
addField, getBody, getHeader
-
-
-
-
Constructor Detail
-
FormBodyPart
FormBodyPart(java.lang.String name, ContentBody body, Header header)
-
-
Method Detail
-
getName
public java.lang.String getName()
-
addField
public void addField(java.lang.String name, java.lang.String value)
- Overrides:
addField
in classMultipartPart
-
-