Class RestClientImpl
- java.lang.Object
-
- com.github.vbauer.yta.service.transport.impl.RestClientImpl
-
- All Implemented Interfaces:
RestClient
@ThreadSafe public class RestClientImpl extends java.lang.Object implements RestClient
SeeRestClient.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTR_KEYstatic intDEFAULT_TIMEOUTstatic java.lang.StringSERVICE_URL
-
Constructor Summary
Constructors Constructor Description RestClientImpl(java.lang.String key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcallMethod(java.lang.String method, java.util.Map<java.lang.String,java.lang.Object> parameters)Make REST API call.
-
-
-
Field Detail
-
SERVICE_URL
public static final java.lang.String SERVICE_URL
- See Also:
- Constant Field Values
-
ATTR_KEY
public static final java.lang.String ATTR_KEY
- See Also:
- Constant Field Values
-
DEFAULT_TIMEOUT
public static final int DEFAULT_TIMEOUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
callMethod
public java.lang.String callMethod(java.lang.String method, java.util.Map<java.lang.String,java.lang.Object> parameters)Make REST API call.- Specified by:
callMethodin interfaceRestClient- Parameters:
method- url methodparameters- method parameters- Returns:
- raw response in plain text
-
-