Class RestClientWrapper
java.lang.Object
org.apache.drill.exec.store.druid.rest.RestClientWrapper
- All Implemented Interfaces:
RestClient
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
RestClientWrapper
public RestClientWrapper()
-
-
Method Details
-
get
Description copied from interface:RestClient
Executes an HTTP GET.- Specified by:
get
in interfaceRestClient
- Parameters:
url
- request URL- Returns:
- a Response object that the caller is responsible for closing.
- Throws:
IOException
-
post
Description copied from interface:RestClient
Executes an HTTP POST.- Specified by:
post
in interfaceRestClient
- Parameters:
url
- request URL.body
- request body.- Returns:
- a Response object that the caller is responsible for closing.
- Throws:
IOException
-