Class Form
java.lang.Object
com.couchbase.client.java.cluster.api.Form
@Public @Experimental public class Form extends Object
A utility method / builder class to create form bodies for a
RestBuilder
or AsyncRestBuilder
.- Since:
- 2.3.2
- Author:
- Simon Baslé
-
Method Summary
-
Method Details
-
create
Create an emptyForm
. -
add
Add a parameter entry to theForm
. -
toUrlEncodedString
Encode theForm
using the "application/x-www-form-urlencoded" Content-Type. Each form parameter is represented as "key=value" where both key and value are url-encoded.- Returns:
- the url-encoded representation of the form.
-