Package com.stripe.net
Class HttpURLConnectionClient
java.lang.Object
com.stripe.net.HttpClient
com.stripe.net.HttpURLConnectionClient
-
Field Summary
Fields inherited from class com.stripe.net.HttpClient
maxNetworkRetriesDelay, minNetworkRetriesDelay
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionrequest
(StripeRequest request) Sends the given request to Stripe's API, and returns a buffered response.requestStream
(StripeRequest request) Sends the given request to Stripe's API.Methods inherited from class com.stripe.net.HttpClient
buildUserAgentString, buildXStripeClientUserAgentString, requestStreamWithRetries, requestStreamWithTelemetry, requestWithRetries, requestWithTelemetry, sendWithRetries
-
Constructor Details
-
HttpURLConnectionClient
public HttpURLConnectionClient()Initializes a new instance of theHttpURLConnectionClient
.
-
-
Method Details
-
requestStream
Sends the given request to Stripe'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 Stripe's API, and returns a buffered response.- Specified by:
request
in classHttpClient
- Parameters:
request
- the request- Returns:
- the response
- Throws:
ApiConnectionException
- if an error occurs when sending or receiving
-