| Package | Description |
|---|---|
| com.ibm.watson.developer_cloud.service |
General Watson service and HTTP exception classes
|
| Modifier and Type | Method and Description |
|---|---|
static Request |
Request.Delete(String url,
Object... args)
The DELETE method requests that the origin server delete the resource
identified by the Request-URI.
|
static Request |
Request.Get(String url,
Object... args)
The GET method means retrieve whatever information (in the form of an
entity) is identified by the Request-URI.
|
static Request |
Request.Post(String url,
Object... args)
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 Request |
Request.Put(String url,
Object... args)
The PUT method requests that the enclosed entity be stored under the
supplied Request-URI.
|
Request |
Request.withContent(org.json.JSONObject json)
Adds a JSON content to the request (used with POST/PUT).
|
Request |
Request.withContent(String content,
String contentType)
Adds string content to the request (used with POST/PUT).
|
Request |
Request.withEntity(org.apache.http.HttpEntity entity)
Adds an arbitrary entity to the request (used with POST/PUT).
|
Request |
Request.withForm(Object... args)
Adds form parameters.
|
Request |
Request.withHeader(Object... args)
Adds header parameters.
|
Request |
Request.withQuery(Object... args)
Adds query parameters.
|
Copyright © 2015. All rights reserved.