public static final class FormData.Builder
extends java.lang.Object
FormData.
Builders are created by invoking FormData.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.
| Modifier and Type | Method and Description |
|---|---|
FormData.Builder |
addPair(FormData.Pair pair)
Sets the key-value pair that represents a segment of the form data.
|
FormData |
build()
Returns a new
FormData instance built from the current state of this builder. |
public FormData.Builder addPair(FormData.Pair pair)
pair - the key-value pair that represents a segment of the form data