|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jayway.restassured.config.HttpClientConfig
public class HttpClientConfig
Configure the Apache HTTP Client parameters.
Note that you can't configure the redirect settings from this config. Please use RedirectConfig for this purpose.
| Parameter name | Parameter value | Description |
|---|---|---|
ClientPNames.COOKIE_POLICY | CookiePolicy.IGNORE_COOKIES | Don't automatically set response cookies in subsequent requests |
ClientPNames,
CookiePolicy,
CoreProtocolPNames| Constructor Summary | |
|---|---|
HttpClientConfig()
Creates a new HttpClientConfig instance with the parameter set to . |
|
HttpClientConfig(Map<String,?> httpClientParams)
Creates a new HttpClientConfig instance with the parameters defined by the httpClientParams. |
|
| Method Summary | ||
|---|---|---|
HttpClientConfig |
addParams(Map<String,?> httpClientParams)
Add the given parameters to an already configured number of parameters. |
|
HttpClientConfig |
and()
|
|
static HttpClientConfig |
httpClientConfig()
|
|
Map<String,?> |
params()
|
|
|
setParam(String parameterName,
T parameterValue)
Set a http client parameter. |
|
HttpClientConfig |
setParams(Map<String,?> httpClientParams)
Replaces the currently configured parameters with the ones supplied by httpClientParams. |
|
HttpClientConfig |
withParams(Map<String,?> httpClientParams)
Replaces the currently configured parameters with the ones supplied by httpClientParams. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpClientConfig()
parameter set to .
public HttpClientConfig(Map<String,?> httpClientParams)
httpClientParams.
| Method Detail |
|---|
public Map<String,?> params()
public HttpClientConfig and()
public <T> HttpClientConfig setParam(String parameterName,
T parameterValue)
T - The parameter typeparameterName - The name of the parameterparameterValue - The value of the parameter (may be null)
public HttpClientConfig withParams(Map<String,?> httpClientParams)
httpClientParams. This method is the same as setParams(java.util.Map).
httpClientParams - The parameters to set.
public HttpClientConfig setParams(Map<String,?> httpClientParams)
httpClientParams. This method is the same as withParams(java.util.Map).
httpClientParams - The parameters to set.
public HttpClientConfig addParams(Map<String,?> httpClientParams)
httpClientParams - The parameters.
public static HttpClientConfig httpClientConfig()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||