Class FormEntityBuilder
- java.lang.Object
-
- org.apache.sling.testing.clients.util.FormEntityBuilder
-
public class FormEntityBuilder extends Object
Helper for creating Entity objects for POST requests.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_ENCODING
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FormEntityBuilder
addAllParameters(List<org.apache.http.NameValuePair> parameters)
FormEntityBuilder
addAllParameters(Map<String,String> parameters)
FormEntityBuilder
addParameter(String name, String value)
org.apache.http.client.entity.UrlEncodedFormEntity
build()
static FormEntityBuilder
create()
FormEntityBuilder
setEncoding(String encoding)
-
-
-
Field Detail
-
DEFAULT_ENCODING
public static final String DEFAULT_ENCODING
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static FormEntityBuilder create()
-
addAllParameters
public FormEntityBuilder addAllParameters(Map<String,String> parameters)
-
addAllParameters
public FormEntityBuilder addAllParameters(List<org.apache.http.NameValuePair> parameters)
-
addParameter
public FormEntityBuilder addParameter(String name, String value)
-
setEncoding
public FormEntityBuilder setEncoding(String encoding)
-
build
public org.apache.http.client.entity.UrlEncodedFormEntity build()
-
-