Package org.camunda.bpm.engine.impl.util
Class ConnectUtil
- java.lang.Object
-
- org.camunda.bpm.engine.impl.util.ConnectUtil
-
public class ConnectUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONFIG_NAME_CONNECTION_TIMEOUT
static java.lang.String
CONFIG_NAME_SOCKET_TIMEOUT
static java.lang.String
HEADER_CONTENT_TYPE
static java.lang.String
METHOD_NAME_POST
static java.lang.String
PARAM_NAME_HEADERS
static java.lang.String
PARAM_NAME_REQUEST_CONFIG
static java.lang.String
PARAM_NAME_REQUEST_METHOD
static java.lang.String
PARAM_NAME_REQUEST_PAYLOAD
static java.lang.String
PARAM_NAME_REQUEST_URL
static java.lang.String
PARAM_NAME_RESPONSE
static java.lang.String
PARAM_NAME_RESPONSE_STATUS_CODE
-
Constructor Summary
Constructors Constructor Description ConnectUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.String,java.lang.Object>
addRequestTimeoutConfiguration(java.util.Map<java.lang.String,java.lang.Object> requestParams, int timeout)
static java.util.Map<java.lang.String,java.lang.Object>
assembleRequestParameters(java.lang.String methodName, java.lang.String url, java.lang.String contentType, java.lang.String payload)
-
-
-
Field Detail
-
PARAM_NAME_REQUEST_URL
public static final java.lang.String PARAM_NAME_REQUEST_URL
- See Also:
- Constant Field Values
-
PARAM_NAME_REQUEST_METHOD
public static final java.lang.String PARAM_NAME_REQUEST_METHOD
- See Also:
- Constant Field Values
-
PARAM_NAME_REQUEST_PAYLOAD
public static final java.lang.String PARAM_NAME_REQUEST_PAYLOAD
- See Also:
- Constant Field Values
-
PARAM_NAME_REQUEST_CONFIG
public static final java.lang.String PARAM_NAME_REQUEST_CONFIG
- See Also:
- Constant Field Values
-
METHOD_NAME_POST
public static final java.lang.String METHOD_NAME_POST
- See Also:
- Constant Field Values
-
CONFIG_NAME_CONNECTION_TIMEOUT
public static final java.lang.String CONFIG_NAME_CONNECTION_TIMEOUT
- See Also:
- Constant Field Values
-
CONFIG_NAME_SOCKET_TIMEOUT
public static final java.lang.String CONFIG_NAME_SOCKET_TIMEOUT
- See Also:
- Constant Field Values
-
PARAM_NAME_RESPONSE_STATUS_CODE
public static final java.lang.String PARAM_NAME_RESPONSE_STATUS_CODE
- See Also:
- Constant Field Values
-
PARAM_NAME_RESPONSE
public static final java.lang.String PARAM_NAME_RESPONSE
- See Also:
- Constant Field Values
-
PARAM_NAME_HEADERS
public static final java.lang.String PARAM_NAME_HEADERS
- See Also:
- Constant Field Values
-
HEADER_CONTENT_TYPE
public static final java.lang.String HEADER_CONTENT_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
assembleRequestParameters
public static java.util.Map<java.lang.String,java.lang.Object> assembleRequestParameters(java.lang.String methodName, java.lang.String url, java.lang.String contentType, java.lang.String payload)
-
addRequestTimeoutConfiguration
public static java.util.Map<java.lang.String,java.lang.Object> addRequestTimeoutConfiguration(java.util.Map<java.lang.String,java.lang.Object> requestParams, int timeout)
-
-