Class FormBodyPartBuilder
java.lang.Object
org.apache.hc.client5.http.entity.mime.FormBodyPartBuilder
Builder for individual
FormBodyParts.- Since:
- 4.4
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static FormBodyPartBuildercreate()static FormBodyPartBuildercreate(String name, ContentBody body) static FormBodyPartBuildercreate(String name, ContentBody body, HttpMultipartMode mode) Creates a new builder instance with the specified name, content body, and multipart mode.removeFields(String name) setBody(ContentBody body)
-
Method Details
-
create
Creates a new builder instance with the specified name, content body, and multipart mode.- Parameters:
name- the name of the form fieldbody- the content body of the partmode- theHttpMultipartModeto use, determining filename encoding behavior;- Returns:
- a new
FormBodyPartBuilderinstance - Since:
- 5.5
-
create
-
create
-
setName
-
setBody
-
addField
public FormBodyPartBuilder addField(String name, String value, List<org.apache.hc.core5.http.NameValuePair> parameters) - Since:
- 4.6
-
addField
-
setField
-
removeFields
-
build
-