public interface RestClient
| Modifier and Type | Method and Description |
|---|---|
RestResponse |
execute(RestRequest request)
Executes a rest request using the underlying Http client implementation.
|
RestResponse |
execute(String baseUrl,
RestRequest request)
Executes the rest request.
|
String |
getBaseUrl()
Retrieves the previously set base Url.
|
void |
setBaseUrl(String bUrl)
Sets the base URL.
|
void setBaseUrl(String bUrl)
http://host:8888/domain/resourcetype and the resource type is
/resourcetype, the base Url is http://host:8888/domain.
It is meant to serve as a default value to be appended to compose the
full Url when
execute(RestRequest)
is used.bUrl - a string with the base Url.
See execute(RestRequest)String getBaseUrl()
setBaseUrl(String)RestResponse execute(RestRequest request)
request - the request to be executedRestResponse execute(String baseUrl, RestRequest request)
baseUrl - the base Urlrequest - the request to be executedsetBaseUrl(java.lang.String)Copyright © 2016 smartrics. All Rights Reserved.