Package be.woutschoovaerts.mollie.util
Class RestService
- java.lang.Object
-
- be.woutschoovaerts.mollie.util.RestService
-
public class RestService extends Object
-
-
Constructor Summary
Constructors Constructor Description RestService(Config config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
delete(String uri, QueryParams params, boolean allowsTestMode, com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
<T> T
delete(String uri, QueryParams params, com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
<T> T
delete(String uri, com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
<T> T
delete(String uri, Object body, QueryParams params, com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
<T> T
get(String uri, QueryParams params, boolean allowsTestMode, com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
<T> T
get(String uri, QueryParams params, com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
<T> T
get(String uri, com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
<T> T
patch(String uri, Object body, QueryParams params, com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
<T> T
patch(String uri, Object body, com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
<T> T
post(String uri, Object body, QueryParams params, com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
<T> T
post(String uri, Object body, com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
<T> T
postWithoutBody(String uri, QueryParams params, com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
void
validateResponse(kong.unirest.HttpResponse<String> response)
-
-
-
Constructor Detail
-
RestService
public RestService(Config config)
-
-
Method Detail
-
get
public <T> T get(String uri, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) throws IOException, MollieException
- Throws:
IOException
MollieException
-
get
public <T> T get(String uri, QueryParams params, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) throws IOException, MollieException
- Throws:
IOException
MollieException
-
get
public <T> T get(String uri, QueryParams params, boolean allowsTestMode, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) throws IOException, MollieException
- Throws:
IOException
MollieException
-
postWithoutBody
public <T> T postWithoutBody(String uri, QueryParams params, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) throws IOException, MollieException
- Throws:
IOException
MollieException
-
post
public <T> T post(String uri, Object body, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) throws IOException, MollieException
- Throws:
IOException
MollieException
-
post
public <T> T post(String uri, Object body, QueryParams params, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) throws IOException, MollieException
- Throws:
IOException
MollieException
-
patch
public <T> T patch(String uri, Object body, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) throws IOException, MollieException
- Throws:
IOException
MollieException
-
patch
public <T> T patch(String uri, Object body, QueryParams params, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) throws IOException, MollieException
- Throws:
IOException
MollieException
-
delete
public <T> T delete(String uri, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) throws IOException, MollieException
- Throws:
IOException
MollieException
-
delete
public <T> T delete(String uri, QueryParams params, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) throws IOException, MollieException
- Throws:
IOException
MollieException
-
delete
public <T> T delete(String uri, QueryParams params, boolean allowsTestMode, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) throws IOException, MollieException
- Throws:
IOException
MollieException
-
delete
public <T> T delete(String uri, Object body, QueryParams params, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) throws IOException, MollieException
- Throws:
IOException
MollieException
-
validateResponse
public void validateResponse(kong.unirest.HttpResponse<String> response) throws IOException, MollieException
- Throws:
IOException
MollieException
-
-