Package com.teamdev.jxbrowser.net
Class MultipartFormData.Builder
java.lang.Object
com.teamdev.jxbrowser.net.MultipartFormData.Builder
- Enclosing interface:
- MultipartFormData
A builder of
MultipartFormData
.
Builders are created by invoking MultipartFormData.newBuilder()
.
Each of the setter methods modifies the state of the builder and returns the same instance.
Builders are not thread-safe and should not be used concurrently from multiple threads
without external synchronization.
-
Method Summary
Modifier and TypeMethodDescriptionSets the key-value pair that represents a segment of the multi-part form data.build()
Returns a newMultipartFormData
instance built from the current state of this builder.
-
Method Details
-
addPair
Sets the key-value pair that represents a segment of the multi-part form data.- Parameters:
pair
- the key-value pair that represents a segment of the multi-part form data- Returns:
- this builder
-
build
Returns a newMultipartFormData
instance built from the current state of this builder.- Returns:
- a new
MultipartFormData
instance
-