public class ConnectUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_NAME_CONNECTION_TIMEOUT |
static String |
CONFIG_NAME_SOCKET_TIMEOUT |
static String |
HEADER_CONTENT_TYPE |
static String |
METHOD_NAME_POST |
static String |
PARAM_NAME_HEADERS |
static String |
PARAM_NAME_REQUEST_CONFIG |
static String |
PARAM_NAME_REQUEST_METHOD |
static String |
PARAM_NAME_REQUEST_PAYLOAD |
static String |
PARAM_NAME_REQUEST_URL |
static String |
PARAM_NAME_RESPONSE |
static String |
PARAM_NAME_RESPONSE_STATUS_CODE |
Constructor and Description |
---|
ConnectUtil() |
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
addRequestTimeoutConfiguration(Map<String,Object> requestParams,
int timeout) |
static Map<String,Object> |
assembleRequestParameters(String methodName,
String url,
String contentType,
String payload) |
public static final String PARAM_NAME_REQUEST_URL
public static final String PARAM_NAME_REQUEST_METHOD
public static final String PARAM_NAME_REQUEST_PAYLOAD
public static final String PARAM_NAME_REQUEST_CONFIG
public static final String METHOD_NAME_POST
public static final String CONFIG_NAME_CONNECTION_TIMEOUT
public static final String CONFIG_NAME_SOCKET_TIMEOUT
public static final String PARAM_NAME_RESPONSE_STATUS_CODE
public static final String PARAM_NAME_RESPONSE
public static final String PARAM_NAME_HEADERS
public static final String HEADER_CONTENT_TYPE
Copyright © 2021. All rights reserved.