public class SpringRESTClientConnector extends RESTClientConnector
ConnectorBase.ProtectedConnectionconnectedAssetProperties, connectionBean, connectionProperties, connectorInstanceId, securedProperties| Constructor and Description |
|---|
SpringRESTClientConnector()
This constructor is work in progress as part of the upgrade of Egeria to use security.
|
| 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 |
callDeleteRESTCall(String methodName,
org.springframework.core.ParameterizedTypeReference<T> responseType,
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 |
callGetRESTCall(String methodName,
org.springframework.core.ParameterizedTypeReference<T> responseType,
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 |
callPostRESTCall(String methodName,
org.springframework.core.ParameterizedTypeReference<T> responseType,
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 |
callPutRESTCall(String methodName,
org.springframework.core.ParameterizedTypeReference<T> responseType,
String urlTemplate,
Object requestBody,
Object... params)
Issue a PUT REST call that returns a response object.
|
void |
initialize(String connectorInstanceId,
ConnectionProperties connectionProperties)
Initialize the connector.
|
disconnect, equals, getConnectedAssetProperties, getConnection, getConnectorInstanceId, hashCode, initializeConnectedAssetProperties, isActive, start, toStringpublic SpringRESTClientConnector()
throws NoSuchAlgorithmException,
KeyManagementException
NoSuchAlgorithmException - new exception added as part of the security work - no description provided yetKeyManagementException - new exception added as part of the security work - no description provided yetpublic void initialize(String connectorInstanceId, ConnectionProperties connectionProperties)
initialize in class ConnectorBaseconnectorInstanceId - - unique id for the connector instance - useful for messages etcconnectionProperties - - POJO for the configuration used to create the connector.public <T> T callGetRESTCallNoParams(String methodName, Class<T> returnClass, String urlTemplate) throws RESTServerException
T - type of the return objectmethodName - 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.public <T> T callGetRESTCall(String methodName, Class<T> returnClass, String urlTemplate, Object... params) throws RESTServerException
T - type of the return objectmethodName - 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.public <T> T callPostRESTCallNoParams(String methodName, Class<T> returnClass, String urlTemplate, Object requestBody) throws RESTServerException
T - type of the return objectmethodName - 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.public <T> T callPostRESTCall(String methodName, Class<T> returnClass, String urlTemplate, Object requestBody, Object... params) throws RESTServerException
T - type of the return objectmethodName - 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.public <T> T callPutRESTCall(String methodName, Class<T> returnClass, String urlTemplate, Object requestBody, Object... params) throws RESTServerException
T - type of the return objectmethodName - 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.public <T> T callDeleteRESTCallNoParams(String methodName, Class<T> returnClass, String urlTemplate, Object requestBody) throws RESTServerException
T - type of the return objectmethodName - 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.public <T> T callDeleteRESTCall(String methodName, Class<T> returnClass, String urlTemplate, Object requestBody, Object... params) throws RESTServerException
T - type of the return objectmethodName - 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.public <T> T callPostRESTCall(String methodName, org.springframework.core.ParameterizedTypeReference<T> responseType, String urlTemplate, Object requestBody, Object... params) throws RESTServerException
T - type of the return objectmethodName - name of the method being called.responseType - class of the response for generic 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.public <T> T callGetRESTCall(String methodName, org.springframework.core.ParameterizedTypeReference<T> responseType, String urlTemplate, Object... params) throws RESTServerException
T - type of the return objectmethodName - name of the method being called.responseType - class of the response for generic 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.public <T> T callDeleteRESTCall(String methodName, org.springframework.core.ParameterizedTypeReference<T> responseType, String urlTemplate, Object requestBody, Object... params) throws RESTServerException
T - type of the return objectmethodName - name of the method being called.responseType - class of the response for generic 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.public <T> T callPutRESTCall(String methodName, org.springframework.core.ParameterizedTypeReference<T> responseType, String urlTemplate, Object requestBody, Object... params) throws RESTServerException
T - type of the return objectmethodName - name of the method being called.responseType - class of the response for generic 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.