Package org.nuxeo.http.test
Class HttpClientTestRule.Builder
- java.lang.Object
-
- org.nuxeo.http.test.HttpClientTestRule.Builder
-
- Enclosing class:
- HttpClientTestRule
public static class HttpClientTestRule.Builder extends Object
The http client test rule builder. This builder is used to pass default parameters to client and requests.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpClientTestRule.Builder
accept(String accept)
HttpClientTestRule.Builder
adminCredentials()
HttpClientTestRule
build()
HttpClientTestRule.Builder
contentType(String contentType)
HttpClientTestRule.Builder
credentials(String username, String password)
HttpClientTestRule.Builder
header(String key, String value)
HttpClientTestRule.Builder
redirectsEnabled(boolean redirectsEnabled)
HttpClientTestRule.Builder
timeout(int timeout)
HttpClientTestRule.Builder
timeout(Duration timeout)
HttpClientTestRule.Builder
url(String url)
HttpClientTestRule.Builder
url(Supplier<String> url)
-
-
-
Method Detail
-
url
public HttpClientTestRule.Builder url(String url)
-
url
public HttpClientTestRule.Builder url(Supplier<String> url)
-
adminCredentials
public HttpClientTestRule.Builder adminCredentials()
-
credentials
public HttpClientTestRule.Builder credentials(String username, String password)
-
accept
public HttpClientTestRule.Builder accept(String accept)
-
contentType
public HttpClientTestRule.Builder contentType(String contentType)
-
timeout
public HttpClientTestRule.Builder timeout(int timeout)
-
timeout
public HttpClientTestRule.Builder timeout(Duration timeout)
-
header
public HttpClientTestRule.Builder header(String key, String value)
-
redirectsEnabled
public HttpClientTestRule.Builder redirectsEnabled(boolean redirectsEnabled)
-
build
public HttpClientTestRule build()
-
-