Package | Description |
---|---|
com.ibm.watson.developer_cloud.http |
Modifier and Type | Method and Description |
---|---|
static RequestBuilder |
RequestBuilder.delete(String url)
The DELETE method requests that the origin server delete the resource identified by the
Request-URI.
|
static RequestBuilder |
RequestBuilder.get(String url)
The GET method means retrieve whatever information (in the form of an entity) is identified by
the Request-URI.
|
static RequestBuilder |
RequestBuilder.post(String url)
The POST request method is designed to request that a web server accept the data enclosed in
the request message's body for storage.
|
static RequestBuilder |
RequestBuilder.put(String url)
The PUT method requests that the enclosed entity be stored under the supplied Request-URI.
|
RequestBuilder |
RequestBuilder.withBody(com.squareup.okhttp.RequestBody body)
Adds an arbitrary entity to the request (used with POST/PUT).
|
RequestBuilder |
RequestBuilder.withBodyContent(String content,
String contentType)
Adds string content to the request (used with POST/PUT).
|
RequestBuilder |
RequestBuilder.withBodyJson(com.google.gson.JsonObject json)
Adds a JSON content to the request (used with POST/PUT).
|
RequestBuilder |
RequestBuilder.withForm(Object... args)
Adds form parameters.
|
RequestBuilder |
RequestBuilder.withFormMap(Map<String,Object> parameters)
Adds form parameters.
|
RequestBuilder |
RequestBuilder.withHeader(Object... args)
Adds header parameters.
|
RequestBuilder |
RequestBuilder.withQuery(Object... args)
Adds query parameters.
|
RequestBuilder |
RequestBuilder.withQueryMap(Map<String,Object> parameters)
Adds query parameters.
|
Copyright © 2015–2016. All rights reserved.