|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RestClient
A Rest Client offers a simplified interface to an underlying implementation of an Http client. A Rest Client is geared to operate of REST resources.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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 executed
RestResponse execute(String baseUrl,
RestRequest request)
baseUrl - the base Urlrequest - the request to be executed
setBaseUrl(java.lang.String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||