Class ConnectUtil


  • public class ConnectUtil
    extends java.lang.Object
    • 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
    • Constructor Detail

      • ConnectUtil

        public ConnectUtil()
    • 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)