| Package | Description |
|---|---|
| org.wisdom.test.http |
Provides the classes used to simplify the test of HTTP Requests in blackbox test.
|
| Modifier and Type | Class and Description |
|---|---|
class |
GetRequest
Creates a request using the GET verb.
|
class |
HttpRequestWithBody
A class making easy the creation of HTTP Request with a payload (body).
|
| Modifier and Type | Field and Description |
|---|---|
protected HttpRequest |
BaseRequest.httpRequest
The underlying HTTP Request.
|
private HttpRequest |
MultipartBody.httpRequestObj |
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
HttpRequest.basicAuth(String username,
String password)
Configures the authentication credentials.
|
HttpRequest |
HttpRequest.header(String name,
String value)
Adds a header to the request.
|
HttpRequest |
HttpRequest.headers(Map<String,String> headers)
Adds a set of headers to the headers of the request.
|
| Modifier and Type | Method and Description |
|---|---|
private static org.apache.http.client.methods.HttpRequestBase |
HttpClientHelper.prepareRequest(HttpRequest request) |
static <T> HttpResponse<T> |
HttpClientHelper.request(HttpRequest request,
Class<T> responseClass)
Executes the request.
|
static <T> Future<HttpResponse<T>> |
HttpClientHelper.requestAsync(HttpRequest request,
Class<T> responseClass,
Callback<T> callback)
Emits an asynchronous request.
|
| Constructor and Description |
|---|
BaseRequest(HttpRequest httpRequest)
Creates a base request form the given HTTP Request.
|
MultipartBody(HttpRequest httpRequest)
Creates the Multipart body from the given request.
|
RequestBodyEntity(HttpRequest httpRequest)
Creates the body.
|
Copyright © 2013–2015 Wisdom Framework. All rights reserved.