Package com.atlan.net
Class HttpURLConnectionClient
java.lang.Object
com.atlan.net.HttpClient
com.atlan.net.HttpURLConnectionClient
Class that actually handles the HTTP-level communications with Atlan.
-
Field Summary
Fields inherited from class com.atlan.net.HttpClient
maxNetworkRetriesDelay, minNetworkRetriesDelay
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionrequest
(AtlanRequest request) Sends the given request to Atlan's API, buffering the response body into memory.requestES
(AtlanRequest request) Sends the given request to Atlan's API, and returns a buffered response.requestStream
(AtlanRequest request) Sends the given request to Atlan's API.Methods inherited from class com.atlan.net.HttpClient
buildUserAgentString, buildXAtlanClientUserAgentString, requestEventStream, requestWithRetries, requestWithTelemetry, sendWithRetries, waitTime
-
Constructor Details
-
HttpURLConnectionClient
public HttpURLConnectionClient()Initializes a new instance of theHttpURLConnectionClient
.
-
-
Method Details
-
requestStream
Sends the given request to Atlan's API.- Overrides:
requestStream
in classHttpClient
- Parameters:
request
- the request- Returns:
- the response
- Throws:
ApiConnectionException
- if an error occurs when sending or receiving
-
request
Sends the given request to Atlan's API, buffering the response body into memory.- Specified by:
request
in classHttpClient
- Parameters:
request
- the request- Returns:
- the response
- Throws:
ApiConnectionException
-
requestES
Sends the given request to Atlan's API, and returns a buffered response.- Specified by:
requestES
in classHttpClient
- Parameters:
request
- the request- Returns:
- the response
- Throws:
ApiConnectionException
- if an error occurs when sending or receiving
-