public class GetRequest extends HttpRequest
body, urlhttpRequest, UTF_8| Constructor and Description |
|---|
GetRequest(org.wisdom.api.http.HttpMethod method,
String url)
Creates the request.
|
GetRequest(String url)
Creates the request.
|
| Modifier and Type | Method and Description |
|---|---|
GetRequest |
basicAuth(String username,
String password)
Configures the basic authentication.
|
GetRequest |
field(String name,
Object value)
Adds a query parameter.
|
GetRequest |
fields(Map<String,Object> parameters)
Adds a set of query parameters.
|
GetRequest |
noEncoding()
Disable the encoding of the response.
|
getBody, getHeaders, getHttpMethod, getUrl, header, headersasBinary, asBinaryAsync, asBinaryAsync, asHtml, asJson, asJsonAsync, asJsonAsync, asString, asStringAsync, asStringAsyncpublic GetRequest(org.wisdom.api.http.HttpMethod method,
String url)
method - the methodurl - the urlpublic GetRequest(String url)
url - the urlpublic GetRequest field(String name, Object value)
name - the name of the parametervalue - the valuepublic GetRequest fields(Map<String,Object> parameters)
parameters - the set of parameterspublic GetRequest noEncoding()
public GetRequest basicAuth(String username, String password)
basicAuth in class HttpRequestusername - the usernamepassword - the passwordCopyright © 2013–2015 Wisdom Framework. All rights reserved.