Package io.gatling.plugin.client.http
Class InfoApiRequests
java.lang.Object
io.gatling.plugin.client.http.InfoApiRequests
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected HttpResponseget(io.gatling.plugin.client.http.ApiPath path, LambdaExceptionUtil.ConsumerWithExceptions<HttpResponse, EnterprisePluginException> validateResponse) protected <T> TgetJson(io.gatling.plugin.client.http.ApiPath path, com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef) protected <T> TgetJson(io.gatling.plugin.client.http.ApiPath path, com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef, LambdaExceptionUtil.ConsumerWithExceptions<HttpResponse, EnterprisePluginException> validateResponse) protected <T> Tprotected <T> TgetJson(io.gatling.plugin.client.http.ApiPath path, Class<T> valueType, LambdaExceptionUtil.ConsumerWithExceptions<HttpResponse, EnterprisePluginException> validateResponse) protected HttpResponsepost(io.gatling.plugin.client.http.ApiPath path, LambdaExceptionUtil.ConsumerWithExceptions<HttpURLConnection, EnterprisePluginException> beforeRequest, LambdaExceptionUtil.ConsumerWithExceptions<HttpResponse, EnterprisePluginException> validateResponse) protected HttpResponseprotected HttpResponsepostJson(io.gatling.plugin.client.http.ApiPath path, Object body, LambdaExceptionUtil.ConsumerWithExceptions<HttpResponse, EnterprisePluginException> validateResponse) protected <T> Tprotected <T> TpostJson(io.gatling.plugin.client.http.ApiPath path, Object body, Class<T> valueType, LambdaExceptionUtil.ConsumerWithExceptions<HttpResponse, EnterprisePluginException> validateResponse) protected HttpResponseput(io.gatling.plugin.client.http.ApiPath path, LambdaExceptionUtil.ConsumerWithExceptions<HttpURLConnection, EnterprisePluginException> beforeRequest, LambdaExceptionUtil.ConsumerWithExceptions<HttpResponse, EnterprisePluginException> validateResponse) protected HttpResponseprotected HttpResponseputJson(io.gatling.plugin.client.http.ApiPath path, Object body, LambdaExceptionUtil.ConsumerWithExceptions<HttpResponse, EnterprisePluginException> validateResponse) protected <T> Tprotected <T> TputJson(io.gatling.plugin.client.http.ApiPath path, Object body, Class<T> valueType, LambdaExceptionUtil.ConsumerWithExceptions<HttpResponse, EnterprisePluginException> validateResponse) protected HttpResponseprotected <T> T
-
Field Details
-
CONTENT_TYPE_HEADER
- See Also:
-
OCTET_STREAM_MEDIA_TYPE
- See Also:
-
JSON_MEDIA_TYPE
- See Also:
-
CLOSE
- See Also:
-
baseUrl
-
token
-
-
Method Details
-
get
protected HttpResponse get(io.gatling.plugin.client.http.ApiPath path, LambdaExceptionUtil.ConsumerWithExceptions<HttpResponse, EnterprisePluginException> validateResponse) throws EnterprisePluginException- Throws:
EnterprisePluginException
-
getJson
protected <T> T getJson(io.gatling.plugin.client.http.ApiPath path, Class<T> valueType, LambdaExceptionUtil.ConsumerWithExceptions<HttpResponse, EnterprisePluginException> validateResponse) throws EnterprisePluginException- Throws:
EnterprisePluginException
-
getJson
protected <T> T getJson(io.gatling.plugin.client.http.ApiPath path, Class<T> valueType) throws EnterprisePluginException - Throws:
EnterprisePluginException
-
getJson
protected <T> T getJson(io.gatling.plugin.client.http.ApiPath path, com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef, LambdaExceptionUtil.ConsumerWithExceptions<HttpResponse, EnterprisePluginException> validateResponse) throws EnterprisePluginException- Throws:
EnterprisePluginException
-
getJson
protected <T> T getJson(io.gatling.plugin.client.http.ApiPath path, com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef) throws EnterprisePluginException - Throws:
EnterprisePluginException
-
post
protected HttpResponse post(io.gatling.plugin.client.http.ApiPath path, LambdaExceptionUtil.ConsumerWithExceptions<HttpURLConnection, EnterprisePluginException> beforeRequest, LambdaExceptionUtil.ConsumerWithExceptions<HttpResponse, throws EnterprisePluginExceptionEnterprisePluginException> validateResponse) - Throws:
EnterprisePluginException
-
postJson
protected HttpResponse postJson(io.gatling.plugin.client.http.ApiPath path, Object body, LambdaExceptionUtil.ConsumerWithExceptions<HttpResponse, EnterprisePluginException> validateResponse) throws EnterprisePluginException- Throws:
EnterprisePluginException
-
postJson
protected HttpResponse postJson(io.gatling.plugin.client.http.ApiPath path, Object body) throws EnterprisePluginException - Throws:
EnterprisePluginException
-
postJson
protected <T> T postJson(io.gatling.plugin.client.http.ApiPath path, Object body, Class<T> valueType, LambdaExceptionUtil.ConsumerWithExceptions<HttpResponse, EnterprisePluginException> validateResponse) throws EnterprisePluginException- Throws:
EnterprisePluginException
-
postJson
protected <T> T postJson(io.gatling.plugin.client.http.ApiPath path, Object body, Class<T> valueType) throws EnterprisePluginException - Throws:
EnterprisePluginException
-
put
protected HttpResponse put(io.gatling.plugin.client.http.ApiPath path, LambdaExceptionUtil.ConsumerWithExceptions<HttpURLConnection, EnterprisePluginException> beforeRequest, LambdaExceptionUtil.ConsumerWithExceptions<HttpResponse, throws EnterprisePluginExceptionEnterprisePluginException> validateResponse) - Throws:
EnterprisePluginException
-
putJson
protected HttpResponse putJson(io.gatling.plugin.client.http.ApiPath path, Object body, LambdaExceptionUtil.ConsumerWithExceptions<HttpResponse, EnterprisePluginException> validateResponse) throws EnterprisePluginException- Throws:
EnterprisePluginException
-
putString
protected <T> T putString(io.gatling.plugin.client.http.ApiPath path, String body, Class<T> responseType) throws EnterprisePluginException - Throws:
EnterprisePluginException
-
putString
protected HttpResponse putString(io.gatling.plugin.client.http.ApiPath path, String body) throws EnterprisePluginException - Throws:
EnterprisePluginException
-
putJson
protected HttpResponse putJson(io.gatling.plugin.client.http.ApiPath path, Object body) throws EnterprisePluginException - Throws:
EnterprisePluginException
-
putJson
protected <T> T putJson(io.gatling.plugin.client.http.ApiPath path, Object body, Class<T> valueType, LambdaExceptionUtil.ConsumerWithExceptions<HttpResponse, EnterprisePluginException> validateResponse) throws EnterprisePluginException- Throws:
EnterprisePluginException
-
putJson
protected <T> T putJson(io.gatling.plugin.client.http.ApiPath path, Object body, Class<T> valueType) throws EnterprisePluginException - Throws:
EnterprisePluginException
-