public class HttpRequestWithBody extends HttpRequest
body, urlhttpRequest, UTF_8| Constructor and Description |
|---|
HttpRequestWithBody(HttpMethod method,
String url) |
| Modifier and Type | Method and Description |
|---|---|
HttpRequestWithBody |
basicAuth(String username,
String password) |
RawBody |
body(byte[] body) |
RequestBodyEntity |
body(JsonNode body) |
RequestBodyEntity |
body(Object body) |
RequestBodyEntity |
body(String body) |
MultipartBody |
field(String name,
Collection<?> value) |
MultipartBody |
field(String name,
File file) |
MultipartBody |
field(String name,
File file,
String contentType) |
MultipartBody |
field(String name,
Object value) |
MultipartBody |
field(String name,
Object value,
String contentType) |
MultipartBody |
fields(Map<String,Object> parameters) |
HttpRequestWithBody |
header(String name,
String value) |
HttpRequestWithBody |
headers(Map<String,String> headers) |
HttpRequestWithBody |
queryString(Map<String,Object> parameters) |
HttpRequestWithBody |
queryString(String name,
Object value) |
HttpRequestWithBody |
routeParam(String name,
String value) |
getBody, getHeaders, getHttpMethod, getUrl, queryStringasBinary, asBinaryAsync, asBinaryAsync, asJson, asJsonAsync, asJsonAsync, asObject, asObjectAsync, asObjectAsync, asString, asStringAsync, asStringAsync, getHttpRequestpublic HttpRequestWithBody(HttpMethod method, String url)
public HttpRequestWithBody routeParam(String name, String value)
routeParam in class HttpRequestpublic HttpRequestWithBody header(String name, String value)
header in class HttpRequestpublic HttpRequestWithBody headers(Map<String,String> headers)
headers in class HttpRequestpublic HttpRequestWithBody basicAuth(String username, String password)
basicAuth in class HttpRequestpublic HttpRequestWithBody queryString(Map<String,Object> parameters)
queryString in class HttpRequestpublic HttpRequestWithBody queryString(String name, Object value)
queryString in class HttpRequestpublic MultipartBody field(String name, Collection<?> value)
public MultipartBody field(String name, Object value)
public MultipartBody field(String name, File file)
public MultipartBody field(String name, Object value, String contentType)
public MultipartBody field(String name, File file, String contentType)
public MultipartBody fields(Map<String,Object> parameters)
public RequestBodyEntity body(JsonNode body)
public RequestBodyEntity body(String body)
public RequestBodyEntity body(Object body)
public RawBody body(byte[] body)
Copyright © 2015. All rights reserved.