Class DatabricksHttpClient
- java.lang.Object
-
- com.databricks.jdbc.dbclient.impl.http.DatabricksHttpClient
-
- All Implemented Interfaces:
IDatabricksHttpClient,Closeable,AutoCloseable
public class DatabricksHttpClient extends Object implements IDatabricksHttpClient, Closeable
Http client implementation to be used for executing http requests.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.apache.http.client.methods.CloseableHttpResponseexecute(org.apache.http.client.methods.HttpUriRequest request)Executes the given http request and returns the response
-
-
-
Method Detail
-
execute
public org.apache.http.client.methods.CloseableHttpResponse execute(org.apache.http.client.methods.HttpUriRequest request) throws DatabricksHttpExceptionDescription copied from interface:IDatabricksHttpClientExecutes the given http request and returns the response- Specified by:
executein interfaceIDatabricksHttpClient- Parameters:
request- underlying http request- Returns:
- http response
- Throws:
DatabricksHttpException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-