Package org.apache.http.entity.mime
Class FormBodyPart
- java.lang.Object
-
- org.apache.http.entity.mime.FormBodyPart
-
public class FormBodyPart extends Object
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
-
-
Constructor Summary
Constructors Constructor Description FormBodyPart(String name, ContentBody body)
Deprecated.(4.4) useFormBodyPartBuilder
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addField(String name, String value)
ContentBody
getBody()
Header
getHeader()
String
getName()
-
-
-
Constructor Detail
-
FormBodyPart
@Deprecated public FormBodyPart(String name, ContentBody body)
Deprecated.(4.4) useFormBodyPartBuilder
.
-
-
Method Detail
-
getName
public String getName()
-
getBody
public ContentBody getBody()
-
getHeader
public Header getHeader()
-
-