Package com.stripe.net
Class LiveStripeResponseGetter
java.lang.Object
com.stripe.net.LiveStripeResponseGetter
- All Implemented Interfaces:
StripeResponseGetter
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of theLiveStripeResponseGetterclass with default parameters.LiveStripeResponseGetter(HttpClient httpClient) Initializes a new instance of theLiveStripeResponseGetterclass.LiveStripeResponseGetter(StripeResponseGetterOptions options, HttpClient httpClient) Initializes a new instance of theLiveStripeResponseGetterclass. -
Method Summary
Modifier and TypeMethodDescriptionrawRequest(RawApiRequest apiRequest) <T extends StripeObject>
Trequest(ApiRequest apiRequest, Type typeToken) <T extends StripeObject>
Trequest(BaseAddress baseAddress, ApiResource.RequestMethod method, String path, Map<String, Object> params, Type typeToken, RequestOptions options, ApiMode apiMode) requestStream(ApiRequest apiRequest) requestStream(BaseAddress baseAddress, ApiResource.RequestMethod method, String path, Map<String, Object> params, RequestOptions options, ApiMode apiMode) voidvalidateRequestOptions(RequestOptions options) This method should e.g.
-
Constructor Details
-
LiveStripeResponseGetter
public LiveStripeResponseGetter()Initializes a new instance of theLiveStripeResponseGetterclass with default parameters. -
LiveStripeResponseGetter
Initializes a new instance of theLiveStripeResponseGetterclass.- Parameters:
httpClient- the HTTP client to use
-
LiveStripeResponseGetter
Initializes a new instance of theLiveStripeResponseGetterclass.- Parameters:
options- the client options instance to usehttpClient- the HTTP client to use
-
-
Method Details
-
request
public <T extends StripeObject> T request(ApiRequest apiRequest, Type typeToken) throws StripeException - Specified by:
requestin interfaceStripeResponseGetter- Throws:
StripeException
-
requestStream
- Specified by:
requestStreamin interfaceStripeResponseGetter- Throws:
StripeException
-
rawRequest
- Specified by:
rawRequestin interfaceStripeResponseGetter- Throws:
StripeException
-
request
public <T extends StripeObject> T request(BaseAddress baseAddress, ApiResource.RequestMethod method, String path, Map<String, Object> params, Type typeToken, RequestOptions options, ApiMode apiMode) throws StripeException- Specified by:
requestin interfaceStripeResponseGetter- Throws:
StripeException
-
requestStream
public InputStream requestStream(BaseAddress baseAddress, ApiResource.RequestMethod method, String path, Map<String, Object> params, RequestOptions options, ApiMode apiMode) throws StripeException- Specified by:
requestStreamin interfaceStripeResponseGetter- Throws:
StripeException
-
validateRequestOptions
Description copied from interface:StripeResponseGetterThis method should e.g. throws an ApiKeyMissingError if a proper API Key cannot be determined by the ResponseGetter or from the RequestOptions passed in.- Specified by:
validateRequestOptionsin interfaceStripeResponseGetter
-