public class FormBodyPartBuilder extends Object
FormBodyPart
s.Modifier and Type | Method and Description |
---|---|
FormBodyPartBuilder |
addField(String name,
String value) |
FormBodyPartBuilder |
addField(String name,
String value,
List<NameValuePair> parameters) |
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) |
public FormBodyPartBuilder addField(String name, String value)
public FormBodyPartBuilder addField(String name, String value, List<NameValuePair> parameters)
public FormBodyPart build()
public static FormBodyPartBuilder create()
public static FormBodyPartBuilder create(String name, ContentBody body)
public FormBodyPartBuilder removeFields(String name)
public FormBodyPartBuilder setBody(ContentBody body)
public FormBodyPartBuilder setField(String name, String value)
public FormBodyPartBuilder setName(String name)