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
-
-
Field Summary
Fields Modifier and Type Field Description private ContentBody
body
private Header
header
private java.lang.String
name
-
Constructor Summary
Constructors Constructor Description FormBodyPart(java.lang.String name, ContentBody body)
Deprecated.(4.4) useFormBodyPartBuilder
.FormBodyPart(java.lang.String name, ContentBody body, Header header)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addField(java.lang.String name, java.lang.String value)
protected void
generateContentDisp(ContentBody body)
Deprecated.(4.4) useFormBodyPartBuilder
.protected void
generateContentType(ContentBody body)
Deprecated.(4.4) useFormBodyPartBuilder
.protected void
generateTransferEncoding(ContentBody body)
Deprecated.(4.4) useFormBodyPartBuilder
.ContentBody
getBody()
Header
getHeader()
java.lang.String
getName()
-
-
-
Field Detail
-
name
private final java.lang.String name
-
header
private final Header header
-
body
private final ContentBody body
-
-
Constructor Detail
-
FormBodyPart
FormBodyPart(java.lang.String name, ContentBody body, Header header)
-
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)
-
generateContentDisp
@Deprecated protected void generateContentDisp(ContentBody body)
Deprecated.(4.4) useFormBodyPartBuilder
.
-
generateContentType
@Deprecated protected void generateContentType(ContentBody body)
Deprecated.(4.4) useFormBodyPartBuilder
.
-
generateTransferEncoding
@Deprecated protected void generateTransferEncoding(ContentBody body)
Deprecated.(4.4) useFormBodyPartBuilder
.
-
-