Package org.nuxeo.jaxrs.test
Class HttpClientTestRule.Builder
- java.lang.Object
-
- org.nuxeo.jaxrs.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
credentials(String username, String password)
HttpClientTestRule.Builder
header(String key, String value)
HttpClientTestRule.Builder
timeout(int timeout)
HttpClientTestRule.Builder
url(String url)
-
-
-
Method Detail
-
url
public HttpClientTestRule.Builder url(String url)
-
adminCredentials
public HttpClientTestRule.Builder adminCredentials()
-
credentials
public HttpClientTestRule.Builder credentials(String username, String password)
-
accept
public HttpClientTestRule.Builder accept(String accept)
-
timeout
public HttpClientTestRule.Builder timeout(int timeout)
-
header
public HttpClientTestRule.Builder header(String key, String value)
-
build
public HttpClientTestRule build()
-
-