Package com.aventstack.chaintest.http
Class ChainTestApiClient
java.lang.Object
com.aventstack.chaintest.http.ChainTestApiClient
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChainTestApiClient(String url) ChainTestApiClient(String url, boolean loadExternalConfig) ChainTestApiClient(URI uri) ChainTestApiClient(URI uri, boolean loadExternalConfig) -
Method Summary
Modifier and TypeMethodDescriptionstatic ChainTestApiClient.Builderbuilder()config()voidcom.fasterxml.jackson.databind.ObjectMappersend(byte[] data) send(byte[] data, HttpMethod method) <T extends ChainTestEntity>
HttpResponse<String>send(T entity) <T extends ChainTestEntity>
HttpResponse<String>send(T entity, HttpMethod method) <T extends ChainTestEntity>
HttpResponse<T><T extends ChainTestEntity>
HttpResponse<T>send(T entity, Class<T> clazz, HttpMethod method) sendAsync(byte[] data) sendAsync(byte[] data, HttpMethod method) <T extends ChainTestEntity>
CompletableFuture<HttpResponse<String>>sendAsync(T entity) <T extends ChainTestEntity>
CompletableFuture<HttpResponse<String>>sendAsync(T entity, HttpMethod method) <T extends ChainTestEntity>
CompletableFuture<HttpResponse<T>><T extends ChainTestEntity>
CompletableFuture<HttpResponse<T>>sendAsync(T entity, Class<T> clazz, HttpMethod method)
-
Field Details
-
PROPERTY_SERVER_URL
- See Also:
-
CLIENT_REQUEST_TIMEOUT
- See Also:
-
CLIENT_EXPECT_CONTINUE
- See Also:
-
CLIENT_MAX_RETRIES
- See Also:
-
CLIENT_RETRY_INTERVAL
- See Also:
-
CLIENT_THROW_AFTER_RETRY_ATTEMPTS_EXCEEDED
- See Also:
-
-
Constructor Details
-
ChainTestApiClient
- Throws:
IOException
-
ChainTestApiClient
-
ChainTestApiClient
-
ChainTestApiClient
- Throws:
IOException
-
ChainTestApiClient
-
ChainTestApiClient
- Throws:
IOException
-
ChainTestApiClient
-
-
Method Details
-
loadConfig
- Throws:
IOException
-
config
-
objectMapper
public com.fasterxml.jackson.databind.ObjectMapper objectMapper() -
retryHandler
-
builder
-
send
public <T extends ChainTestEntity> HttpResponse<String> send(T entity, HttpMethod method) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
send
public <T extends ChainTestEntity> HttpResponse<String> send(T entity) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
send
public <T extends ChainTestEntity> HttpResponse<T> send(T entity, Class<T> clazz, HttpMethod method) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
send
public <T extends ChainTestEntity> HttpResponse<T> send(T entity, Class<T> clazz) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
sendAsync
public <T extends ChainTestEntity> CompletableFuture<HttpResponse<String>> sendAsync(T entity, HttpMethod method) throws IOException - Throws:
IOException
-
sendAsync
public <T extends ChainTestEntity> CompletableFuture<HttpResponse<String>> sendAsync(T entity) throws IOException - Throws:
IOException
-
sendAsync
public <T extends ChainTestEntity> CompletableFuture<HttpResponse<T>> sendAsync(T entity, Class<T> clazz, HttpMethod method) throws IOException - Throws:
IOException
-
sendAsync
public <T extends ChainTestEntity> CompletableFuture<HttpResponse<T>> sendAsync(T entity, Class<T> clazz) throws IOException - Throws:
IOException
-
send
public HttpResponse<String> send(byte[] data, HttpMethod method) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
send
- Throws:
IOExceptionInterruptedException
-
sendAsync
-
sendAsync
-