T - the RuntimePlatform subclass containing this RestGetActionpublic abstract class RestGetAction<T extends RuntimePlatform> extends RestAction<T>
This class extends the generic RestAction and provides an utility constructor to create GET request.
RestAction.MethodKindheaders, jsonContent, method, params, restEndpointruntimePlatform, session| Constructor and Description |
|---|
RestGetAction(T runtimePlatform,
XatkitSession session,
Map<String,String> headers,
String restEndpoint,
Map<String,Object> params)
Constructs a new
RestGetAction. |
compute, getJsonBody, getStringBody, handleResponsecall, getSession, initpublic RestGetAction(T runtimePlatform, XatkitSession session, Map<String,String> headers, String restEndpoint, Map<String,Object> params)
RestGetAction.
This method doesn't perform the REST API request, this is done asynchronously in the RestAction.compute()
method.
runtimePlatform - the RuntimePlatform containing this actionsession - the XatkitSession associated to this actionheaders - the Map of user-defined headers to include in the requestrestEndpoint - the REST API endpoint to requestparams - the Map of user-defined parameters to include in the requestNullPointerException - if the provided runtimePlatform or session is nullIllegalArgumentException - if the provided restEndpoint is null or emptyCopyright © 2020 SOM Research Lab. All rights reserved.