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. -
Method Summary
Modifier and TypeMethodDescription<T extends StripeObjectInterface>
ToauthRequest(ApiResource.RequestMethod method, String url, Map<String, Object> params, Class<T> clazz, RequestOptions options) <T extends StripeObjectInterface>
Trequest(ApiResource.RequestMethod method, String url, Map<String, Object> params, Class<T> clazz, RequestOptions options) requestStream(ApiResource.RequestMethod method, String url, Map<String, Object> params, RequestOptions options)
-
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
-
-
Method Details
-
request
public <T extends StripeObjectInterface> T request(ApiResource.RequestMethod method, String url, Map<String, Object> params, Class<T> clazz, RequestOptions options) throws StripeException- Specified by:
requestin interfaceStripeResponseGetter- Throws:
StripeException
-
requestStream
public InputStream requestStream(ApiResource.RequestMethod method, String url, Map<String, Object> params, RequestOptions options) throws StripeException- Specified by:
requestStreamin interfaceStripeResponseGetter- Throws:
StripeException
-
oauthRequest
public <T extends StripeObjectInterface> T oauthRequest(ApiResource.RequestMethod method, String url, Map<String, Object> params, Class<T> clazz, RequestOptions options) throws StripeException- Specified by:
oauthRequestin interfaceStripeResponseGetter- Throws:
StripeException
-