Class FormBodyPartBuilder
- java.lang.Object
-
- com.foxinmy.weixin4j.http.apache.mime.FormBodyPartBuilder
-
public class FormBodyPartBuilder extends Object
Builder for individualFormBodyPart
s.- Since:
- 4.4
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FormBodyPartBuilder
addField(String name, String value)
FormBodyPart
build()
static FormBodyPartBuilder
create()
static FormBodyPartBuilder
create(String name, ContentBody body)
FormBodyPartBuilder
removeFields(String name)
FormBodyPartBuilder
setBody(ContentBody body)
FormBodyPartBuilder
setField(String name, String value)
FormBodyPartBuilder
setName(String name)
-
-
-
Method Detail
-
create
public static FormBodyPartBuilder create(String name, ContentBody body)
-
create
public static FormBodyPartBuilder create()
-
setName
public FormBodyPartBuilder setName(String name)
-
setBody
public FormBodyPartBuilder setBody(ContentBody body)
-
addField
public FormBodyPartBuilder addField(String name, String value)
-
setField
public FormBodyPartBuilder setField(String name, String value)
-
removeFields
public FormBodyPartBuilder removeFields(String name)
-
build
public FormBodyPart build()
-
-