public static class EndpointRequest.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
EndpointRequest |
build() |
EndpointRequest.Builder |
contentType(String contentType)
The request content type.
|
EndpointRequest.Builder |
copy(EndpointRequest model) |
EndpointRequest.Builder |
formParameters(List<NameValuePair> formParameters)
The request form parameters represented as a list of name-value pairs.
|
EndpointRequest.Builder |
headers(List<NameValuePair> headers)
The request headers represented as a list of name-value pairs.
|
EndpointRequest.Builder |
method(EndpointRequest.Method method)
The endpoint method - GET or POST.
|
EndpointRequest.Builder |
payload(String payload)
The request payload, applicable for POST requests.
|
EndpointRequest.Builder |
url(String url)
The request URL.
|
public EndpointRequest.Builder method(EndpointRequest.Method method)
The endpoint method - GET or POST.
method
- the value to setpublic EndpointRequest.Builder url(String url)
The request URL.
url
- the value to setpublic EndpointRequest.Builder contentType(String contentType)
The request content type.
contentType
- the value to setpublic EndpointRequest.Builder payload(String payload)
The request payload, applicable for POST requests.
payload
- the value to setpublic EndpointRequest.Builder headers(List<NameValuePair> headers)
The request headers represented as a list of name-value pairs.
headers
- the value to setpublic EndpointRequest.Builder formParameters(List<NameValuePair> formParameters)
The request form parameters represented as a list of name-value pairs.
formParameters
- the value to setpublic EndpointRequest build()
public EndpointRequest.Builder copy(EndpointRequest model)
Copyright © 2016–2024. All rights reserved.