| Modifier and Type | Method and Description |
|---|---|
SimpleRestClient.RequestBuilder |
SimpleRestClient.RequestBuilder.accept(String contentType)
Sets a custom content type as Accept header
|
SimpleRestClient.RequestBuilder |
SimpleRestClient.RequestBuilder.acceptJson()
Sets the accept content type to application/json
|
SimpleRestClient.RequestBuilder |
SimpleRestClient.RequestBuilder.addHeader(String name,
String value)
Adds a custom header to the request
|
SimpleRestClient.RequestBuilder |
SimpleRestClient.RequestBuilder.auth(String authToken)
Specifies a custom auth token to set as Authorization information on the request
|
SimpleRestClient.RequestBuilder |
SimpleRestClient.RequestBuilder.basicAuth(String username,
String password)
Specifies basic authentication information to be added to the request
|
SimpleRestClient.RequestBuilder |
SimpleRestClient.RequestBuilder.contentType(String contentType)
Sets a custom content type as Content-Type header
|
static SimpleRestClient.RequestBuilder |
SimpleRestClient.requestTo(String url)
Initiates a new request to the specified URL
|
static SimpleRestClient.RequestBuilder |
SimpleRestClient.requestTo(URL url)
Initiates a new request to the specified URL
|
SimpleRestClient.RequestBuilder |
SimpleRestClient.RequestBuilder.sendJson()
Sets the sent content's type to application/json
|
Copyright © 2017–2018 DevCon5 GmbH. All rights reserved.