Package org.nuxeo.http.test
Class HttpClientTestRule.RequestBuilder
java.lang.Object
org.nuxeo.http.test.HttpClientTestRule.RequestBuilder
- Enclosing class:
- HttpClientTestRule
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.apache.http.client.methods.RequestBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddHeaders
(Map<String, String> headers) addMatrixParameter
(String name, String value) addQueryParameter
(String name, String value) addQueryParameter
(String name, String[] values) addQueryParameter
(String name, String value, String... values) addQueryParameter
(String name, List<String> values) addQueryParameters
(Map<String, String> parameters) contentType
(String contentType) credentials
(String username, String password) entity
(InputStream entity) execute()
<T> T
execute
(ResponseHandler<T> responseHandler) void
executeAndConsume
(Consumer<? super HttpResponse> consumer) <T> void
executeAndConsume
(ResponseHandler<T> responseHandler, Consumer<T> consumer) <R> R
executeAndThen
(Function<? super HttpResponse, R> finisher) <T,
R> R executeAndThen
(ResponseHandler<T> responseHandler, Function<T, R> finisher)
-
Field Details
-
internalBuilder
protected final org.apache.http.client.methods.RequestBuilder internalBuilder -
queryParameters
-
matrixParameters
-
-
Constructor Details
-
RequestBuilder
-
-
Method Details
-
credentials
-
accept
-
contentType
-
addHeader
-
addHeaders
-
addQueryParameter
-
addQueryParameter
public HttpClientTestRule.RequestBuilder addQueryParameter(String name, String value, String... values) -
addQueryParameter
-
addQueryParameter
-
addQueryParameters
-
addMatrixParameter
-
entity
-
entity
-
entity
public HttpClientTestRule.RequestBuilder entity(javax.ws.rs.core.MultivaluedMap<String, String> formData) -
entity
-
execute
-
executeAndThen
-
executeAndConsume
-
execute
-
executeAndThen
-
executeAndConsume
-