public interface RestClient
TemplateContext.getRestClient()
Modifier and Type | Method and Description |
---|---|
RestRequest |
createRequest(String uri)
Create a new REST request with GET method.
|
RestRequest |
createRequest(String uri,
String method)
Create a new REST request.
|
RestRequest |
createRequest(String uri,
String method,
boolean synchronous)
Create a new REST request.
|
RestRequest createRequest(String uri, String method, boolean synchronous) throws IllegalStateException
uri
- Web resource URI.synchronous
- Is the invocation synchronous or not.method
- HTTP method.IllegalStateException
- if the synchronous mode is not supported.RestRequest createRequest(String uri, String method)
uri
- Web resource URI.method
- HTTP method.RestRequest createRequest(String uri)
uri
- Web resource URI.