public interface RESTClientCalls
| Modifier and Type | Method and Description |
|---|---|
<T> T |
callDeleteRESTCall(String methodName,
Class<T> returnClass,
String urlTemplate,
Object requestBody,
Object... params)
Issue a DELETE REST call that returns a response object.
|
<T> T |
callDeleteRESTCallNoParams(String methodName,
Class<T> returnClass,
String urlTemplate,
Object requestBody)
Issue a DELETE REST call that returns a response object.
|
<T> T |
callGetRESTCall(String methodName,
Class<T> returnClass,
String urlTemplate,
Object... params)
Issue a GET REST call that returns a response object.
|
<T> T |
callGetRESTCallNoParams(String methodName,
Class<T> returnClass,
String urlTemplate)
Issue a GET REST call that returns a response object.
|
<T> T |
callPostRESTCall(String methodName,
Class<T> returnClass,
String urlTemplate,
Object requestBody,
Object... params)
Issue a POST REST call that returns a response object.
|
<T> T |
callPostRESTCallNoParams(String methodName,
Class<T> returnClass,
String urlTemplate,
Object requestBody)
Issue a POST REST call that returns a response object.
|
<T> T |
callPutRESTCall(String methodName,
Class<T> returnClass,
String urlTemplate,
Object requestBody,
Object... params)
Issue a PUT REST call that returns a response object.
|
<T> T callGetRESTCallNoParams(String methodName, Class<T> returnClass, String urlTemplate) throws RESTServerException
T - class namemethodName - name of the method being called.returnClass - class of the response object.urlTemplate - template of the URL for the REST API call with place-holders for the parameters.RESTServerException - something went wrong with the REST call stack.<T> T callGetRESTCall(String methodName, Class<T> returnClass, String urlTemplate, Object... params) throws RESTServerException
T - class namemethodName - name of the method being called.returnClass - class of the response object.urlTemplate - template of the URL for the REST API call with place-holders for the parameters.params - a list of parameters that are slotted into the url template.RESTServerException - something went wrong with the REST call stack.<T> T callPostRESTCallNoParams(String methodName, Class<T> returnClass, String urlTemplate, Object requestBody) throws RESTServerException
T - class namemethodName - name of the method being called.returnClass - class of the response object.urlTemplate - template of the URL for the REST API call with place-holders for the parameters.requestBody - request body for the request.RESTServerException - something went wrong with the REST call stack.<T> T callPostRESTCall(String methodName, Class<T> returnClass, String urlTemplate, Object requestBody, Object... params) throws RESTServerException
T - class namemethodName - name of the method being called.returnClass - class of the response object.urlTemplate - template of the URL for the REST API call with place-holders for the parameters.requestBody - request body for the request.params - a list of parameters that are slotted into the url template.RESTServerException - something went wrong with the REST call stack.<T> T callPutRESTCall(String methodName, Class<T> returnClass, String urlTemplate, Object requestBody, Object... params) throws RESTServerException
T - class namemethodName - name of the method being called.returnClass - class of the response object.urlTemplate - template of the URL for the REST API call with place-holders for the parameters.requestBody - request body for the request.params - a list of parameters that are slotted into the url template.RESTServerException - something went wrong with the REST call stack.<T> T callDeleteRESTCallNoParams(String methodName, Class<T> returnClass, String urlTemplate, Object requestBody) throws RESTServerException
T - class namemethodName - name of the method being called.returnClass - class of the response object.urlTemplate - template of the URL for the REST API call with place-holders for the parameters.requestBody - request body for the request.RESTServerException - something went wrong with the REST call stack.<T> T callDeleteRESTCall(String methodName, Class<T> returnClass, String urlTemplate, Object requestBody, Object... params) throws RESTServerException
T - class namemethodName - name of the method being called.returnClass - class of the response object.urlTemplate - template of the URL for the REST API call with place-holders for the parameters.requestBody - request body for the request.params - a list of parameters that are slotted into the url template.RESTServerException - something went wrong with the REST call stack.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.