Package com.eka.middleware.pub.util.rest
Class Client
java.lang.Object
com.eka.middleware.pub.util.rest.Client
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioninvoke
(String url, String method, Map<String, Object> formData, Map<String, String> reqHeaders, boolean sslValidation) invoke
(String format, String method, Map<String, Object> formData, Map<String, String> reqHeaders, String reqPayload, boolean b) invoke
(String url, String method, Map<String, Object> formData, Map<String, String> reqHeaders, String payload, InputStream inputStream, Map<String, String> queryParameters, boolean sslValidation) invoke
(String url, String method, Map<String, Object> formData, Map<String, String> reqHeaders, String payload, InputStream inputStream, Map<String, String> queryParameters, Map<String, Object> settings, boolean sslValidation) invokeREST
(int itr, String url, String method, Map<String, String> headers, Map<String, Object> formData, String payload, File binary, String basicAuthUser, String basicAuthPass, Map<String, Object> respHandling, byte[] payloadBytes, InputStream payloadIS, AWS4SignerForChunkedUpload signer) Deprecated.
-
Constructor Details
-
Client
public Client()
-
-
Method Details
-
invokeREST
@Deprecated(since="release/1.4.2") public static Map<String,Object> invokeREST(int itr, String url, String method, Map<String, String> headers, Map<String, throws ExceptionObject> formData, String payload, File binary, String basicAuthUser, String basicAuthPass, Map<String, Object> respHandling, byte[] payloadBytes, InputStream payloadIS, AWS4SignerForChunkedUpload signer) Deprecated.- Throws:
Exception
-
invoke
public static Map<String,Object> invoke(String url, String method, Map<String, Object> formData, Map<String, throws ExceptionString> reqHeaders, boolean sslValidation) - Parameters:
url
-method
-formData
-reqHeaders
-sslValidation
-- Returns:
- Throws:
Exception
-
invoke
public static Map<String,Object> invoke(String format, String method, Map<String, Object> formData, Map<String, throws ExceptionString> reqHeaders, String reqPayload, boolean b) - Throws:
Exception
-
invoke
public static Map<String,Object> invoke(String url, String method, Map<String, Object> formData, Map<String, throws ExceptionString> reqHeaders, String payload, InputStream inputStream, Map<String, String> queryParameters, boolean sslValidation) - Parameters:
url
-method
-formData
-reqHeaders
-payload
-inputStream
-queryParameters
-sslValidation
-- Returns:
- Throws:
Exception
-
invoke
public static Map<String,Object> invoke(String url, String method, Map<String, Object> formData, Map<String, throws ExceptionString> reqHeaders, String payload, InputStream inputStream, Map<String, String> queryParameters, Map<String, Object> settings, boolean sslValidation) - Parameters:
url
-method
-formData
-reqHeaders
-sslValidation
-- Returns:
- Throws:
Exception
-