public class ElementServiceBase extends ServiceBase
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BEGIN_OF_PARAMS |
Modifier | Constructor and Description |
---|---|
protected |
ElementServiceBase(RequestDispatcher requestDispatcher)
Create a service with the given connection.
|
Modifier and Type | Method and Description |
---|---|
protected <TRequest> java.lang.String |
encodeRequest(java.lang.String method,
TRequest requestParams,
java.lang.Class<TRequest> requestParamsClass)
Constructs the JSON-RPC request.
|
checkForError, decodeResponse, extractApiError, getGsonBuilder, getRequestDispatcher, sendRequest
public static final java.lang.String BEGIN_OF_PARAMS
protected ElementServiceBase(RequestDispatcher requestDispatcher)
requestDispatcher
- is the mechanism for sending requests to some location.protected <TRequest> java.lang.String encodeRequest(java.lang.String method, TRequest requestParams, java.lang.Class<TRequest> requestParamsClass)
ServiceBase
encodeRequest
in class ServiceBase
method
- the api method namerequestParams
- the object containing the request parametersrequestParamsClass
- the class (type) of the request object