| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Request.Builder |
body(byte[] body) |
Request.Builder |
body(long contentLength,
InputStream body) |
Request.Builder |
body(String body) |
Request |
build() |
Exchange |
buildExchange() |
Request.Builder |
contentType(String value) |
Request.Builder |
delete(String url) |
Request.Builder |
delete(URIFactory uriFactory,
String url) |
Request.Builder |
get(String url)
Sets the request's method to "GET" and the URI to the parameter.
|
Request.Builder |
get(URIFactory uriFactory,
String url) |
Request.Builder |
header(Header headers) |
Request.Builder |
header(String headerName,
String headerValue) |
Request.Builder |
method(String method) |
Request.Builder |
post(String url) |
Request.Builder |
post(URIFactory uriFactory,
String url) |
Request.Builder |
put(String url) |
Request.Builder |
put(URIFactory uriFactory,
String url) |
Request.Builder |
url(URIFactory uriFactory,
String url) |
public Request build()
public Exchange buildExchange()
public Request.Builder method(String method)
public Request.Builder url(URIFactory uriFactory, String url) throws URISyntaxException
URISyntaxExceptionpublic Request.Builder header(String headerName, String headerValue)
public Request.Builder contentType(String value)
public Request.Builder header(Header headers)
public Request.Builder body(String body)
public Request.Builder body(byte[] body)
public Request.Builder body(long contentLength, InputStream body) throws IOException
IOExceptionpublic Request.Builder post(URIFactory uriFactory, String url) throws URISyntaxException
URISyntaxExceptionpublic Request.Builder post(String url) throws URISyntaxException
URISyntaxExceptionpublic Request.Builder get(URIFactory uriFactory, String url) throws URISyntaxException
URISyntaxExceptionpublic Request.Builder get(String url) throws URISyntaxException
URIFactory.URISyntaxExceptionpublic Request.Builder delete(URIFactory uriFactory, String url) throws URISyntaxException
URISyntaxExceptionpublic Request.Builder delete(String url) throws URISyntaxException
URISyntaxExceptionpublic Request.Builder put(URIFactory uriFactory, String url) throws URISyntaxException
URISyntaxExceptionpublic Request.Builder put(String url) throws URISyntaxException
URISyntaxExceptionCopyright © 2021. All Rights Reserved.