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<org.apache.hc.core5.http.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 static FormBodyPartBuilder create(String name, ContentBody body)
public static FormBodyPartBuilder create()
public FormBodyPartBuilder setName(String name)
public FormBodyPartBuilder setBody(ContentBody body)
public FormBodyPartBuilder addField(String name, String value, List<org.apache.hc.core5.http.NameValuePair> parameters)
public FormBodyPartBuilder addField(String name, String value)
public FormBodyPartBuilder setField(String name, String value)
public FormBodyPartBuilder removeFields(String name)
public FormBodyPart build()
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.