public class FFDCRESTClient extends FFDCRESTClientBase
exceptionHandler, serverName, serverPlatformURLRoot| Modifier | Constructor and Description |
|---|---|
protected |
FFDCRESTClient(String serverName,
String serverPlatformURLRoot)
Constructor for no authentication.
|
protected |
FFDCRESTClient(String serverName,
String serverPlatformURLRoot,
String userId,
String password)
Constructor for simple userId and password authentication.
|
| Modifier and Type | Method and Description |
|---|---|
CountResponse |
callCountGetRESTCall(String methodName,
String urlTemplate,
Object... params)
Issue a GET REST call that returns a CountResponse object.
|
GUIDResponse |
callGUIDGetRESTCall(String methodName,
String urlTemplate,
Object... params)
Issue a GET REST call that returns a GUIDResponse object.
|
GUIDListResponse |
callGUIDListGetRESTCall(String methodName,
String urlTemplate,
Object... params)
Issue a GET REST call that returns a list of GUIDs object.
|
GUIDListResponse |
callGUIDListPostRESTCall(String methodName,
String urlTemplate,
Object requestBody,
Object... params)
Issue a POST REST call that returns a list of GUIDs object.
|
GUIDResponse |
callGUIDPostRESTCall(String methodName,
String urlTemplate,
Object requestBody,
Object... params)
Issue a POST REST call that returns a guid object.
|
NameListResponse |
callNameListGetRESTCall(String methodName,
String urlTemplate,
Object... params)
Issue a GET REST call that returns a list of names.
|
StringMapResponse |
callStringMapGetRESTCall(String methodName,
String urlTemplate,
Object... params)
Issue a GET REST call that returns a list of names mapped to their descriptions.
|
VoidResponse |
callVoidGetRESTCall(String methodName,
String urlTemplate,
Object... params)
Issue a POST REST call that returns a VoidResponse object.
|
VoidResponse |
callVoidPostRESTCall(String methodName,
String urlTemplate,
Object requestBody,
Object... params)
Issue a POST REST call that returns a VoidResponse object.
|
callGetRESTCall, callGetRESTCallNoParams, callPostRESTCall, callPostRESTCallNoParamsprotected FFDCRESTClient(String serverName, String serverPlatformURLRoot) throws InvalidParameterException
serverName - name of the OMAG Server to callserverPlatformURLRoot - URL root of the server platform where the OMAG Server is running.InvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.protected FFDCRESTClient(String serverName, String serverPlatformURLRoot, String userId, String password) throws InvalidParameterException
serverName - name of the OMAG Server to callserverPlatformURLRoot - URL root of the server platform where the OMAG Server is running.userId - user id for the HTTP requestpassword - password for the HTTP requestInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public NameListResponse callNameListGetRESTCall(String methodName, String urlTemplate, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
methodName - name of the method being called.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.InvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - something went wrong with the REST call stack.public StringMapResponse callStringMapGetRESTCall(String methodName, String urlTemplate, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
methodName - name of the method being called.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.InvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - something went wrong with the REST call stack.public GUIDResponse callGUIDGetRESTCall(String methodName, String urlTemplate, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
methodName - name of the method being called.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.InvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - something went wrong with the REST call stack.public GUIDResponse callGUIDPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
methodName - name of the method being calledurlTemplate - 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.InvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - something went wrong with the REST call stack.public GUIDListResponse callGUIDListGetRESTCall(String methodName, String urlTemplate, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
methodName - name of the method being called.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.InvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - something went wrong with the REST call stack.public GUIDListResponse callGUIDListPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
methodName - name of the method being called.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.InvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - something went wrong with the REST call stack.public VoidResponse callVoidGetRESTCall(String methodName, String urlTemplate, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
methodName - name of the method being called.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.InvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - something went wrong with the REST call stack.public VoidResponse callVoidPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
methodName - name of the method being called.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.InvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - something went wrong with the REST call stack.public CountResponse callCountGetRESTCall(String methodName, String urlTemplate, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
methodName - name of the method being called.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.InvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - something went wrong with the REST call stack.Copyright © 2018–2020 ODPi. All rights reserved.