@Generated(value="SparkTools") public static final class RestRequest.Builder extends Object
RestRequest.| Modifier and Type | Method and Description |
|---|---|
RestRequest.Builder |
basePath(String basePath)
The base path of the request with probably the protocol, hostname and optionally the port.
|
RestRequest |
build()
Builds the unmodifiable rest request instance.
|
RestRequest.Builder |
headers(Map<String,String> headers)
The headers of the rest request.
|
RestRequest.Builder |
method(org.everit.http.client.HttpMethod method)
Method of the rest request.
|
RestRequest.Builder |
path(String path)
Path of the rest request.
|
RestRequest.Builder |
pathParams(Map<String,String> pathParams)
Path parameters that will be injected within
path(String). |
RestRequest.Builder |
queryParams(Map<String,Collection<String>> queryParams)
Query parameters that will be appended after the path.
|
RestRequest.Builder |
requestBody(Optional<?> requestBody)
Optional body of the request.
|
public RestRequest.Builder basePath(String basePath)
public RestRequest build()
public RestRequest.Builder headers(Map<String,String> headers)
public RestRequest.Builder method(org.everit.http.client.HttpMethod method)
HttpMethod.GETpublic RestRequest.Builder path(String path)
public RestRequest.Builder pathParams(Map<String,String> pathParams)
path(String).public RestRequest.Builder queryParams(Map<String,Collection<String>> queryParams)
public RestRequest.Builder requestBody(Optional<?> requestBody)
AsyncContentProvider it is be used as is, otherwise Jackson is used to convert the
object to a JSON String.Copyright © 2011–2019 Everit Kft.. All rights reserved.