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