Package org.apache.http.entity.mime
Class FormBodyPartBuilder
- java.lang.Object
-
- org.apache.http.entity.mime.FormBodyPartBuilder
-
public class FormBodyPartBuilder extends java.lang.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(java.lang.String name, java.lang.String value)
FormBodyPart
build()
static FormBodyPartBuilder
create()
static FormBodyPartBuilder
create(java.lang.String name, ContentBody body)
FormBodyPartBuilder
removeFields(java.lang.String name)
FormBodyPartBuilder
setBody(ContentBody body)
FormBodyPartBuilder
setField(java.lang.String name, java.lang.String value)
FormBodyPartBuilder
setName(java.lang.String name)
-
-
-
Method Detail
-
create
public static FormBodyPartBuilder create(java.lang.String name, ContentBody body)
-
create
public static FormBodyPartBuilder create()
-
setName
public FormBodyPartBuilder setName(java.lang.String name)
-
setBody
public FormBodyPartBuilder setBody(ContentBody body)
-
addField
public FormBodyPartBuilder addField(java.lang.String name, java.lang.String value)
-
setField
public FormBodyPartBuilder setField(java.lang.String name, java.lang.String value)
-
removeFields
public FormBodyPartBuilder removeFields(java.lang.String name)
-
build
public FormBodyPart build()
-
-