Class FormBodyPart
- java.lang.Object
-
- com.foxinmy.weixin4j.http.apache.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)
(4.4) useFormBodyPartBuilder
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addField(String name, String value)
protected void
generateContentDisp(ContentBody body)
(4.4) useFormBodyPartBuilder
.protected void
generateContentType(ContentBody body)
(4.4) useFormBodyPartBuilder
.protected void
generateTransferEncoding(ContentBody body)
(4.4) useFormBodyPartBuilder
.ContentBody
getBody()
Header
getHeader()
String
getName()
-
-
-
Constructor Detail
-
FormBodyPart
public FormBodyPart(String name, ContentBody body)
(4.4) useFormBodyPartBuilder
.
-
-
Method Detail
-
getName
public String getName()
-
getBody
public ContentBody getBody()
-
getHeader
public Header getHeader()
-
generateContentDisp
protected void generateContentDisp(ContentBody body)
(4.4) useFormBodyPartBuilder
.
-
generateContentType
protected void generateContentType(ContentBody body)
(4.4) useFormBodyPartBuilder
.
-
generateTransferEncoding
protected void generateTransferEncoding(ContentBody body)
(4.4) useFormBodyPartBuilder
.
-
-