public class ConnectionUtils extends Object
Connection.| Modifier and Type | Class and Description |
|---|---|
static class |
ConnectionUtils.DebugLogResponse
The function allowing to debug response.
|
| Constructor and Description |
|---|
ConnectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkResponseStatus(@NonNull org.asynchttpclient.Response response)
Allows checking response status and throw related exceptions.
|
public static void checkResponseStatus(@NonNull
@NonNull org.asynchttpclient.Response response)
throws CometWebJavaSdkException,
CometApiException
response - the Response to be checked.CometWebJavaSdkException - if remote endpoint returned BAD REQUEST error status.CometApiException - is request failed with another error code.Copyright © 2022. All rights reserved.