public class OCFRESTClient extends FFDCRESTClient
auditLog, exceptionHandler, serverName, serverPlatformURLRoot| Modifier | Constructor and Description |
|---|---|
|
OCFRESTClient(String serverName,
String serverPlatformURLRoot)
Constructor for no authentication.
|
protected |
OCFRESTClient(String serverName,
String serverPlatformURLRoot,
AuditLog auditLog)
Constructor for no authentication with audit log.
|
|
OCFRESTClient(String serverName,
String serverPlatformURLRoot,
String userId,
String password)
Constructor for simple userId and password authentication.
|
|
OCFRESTClient(String serverName,
String serverPlatformURLRoot,
String userId,
String password,
AuditLog auditLog)
Constructor for simple userId and password authentication with audit log.
|
| Modifier and Type | Method and Description |
|---|---|
AssetResponse |
callAssetGetRESTCall(String methodName,
String urlTemplate,
Object... params)
Issue a GET REST call that returns an AssetResponse object.
|
AssetsResponse |
callAssetsGetRESTCall(String methodName,
String urlTemplate,
Object... params)
Issue a GET REST call that returns a AssetsResponse object.
|
AssetsResponse |
callAssetsPostRESTCall(String methodName,
String urlTemplate,
Object requestBody,
Object... params)
Issue a POST REST call that returns a AssetsResponse object.
|
ConnectionResponse |
callConnectionGetRESTCall(String methodName,
String urlTemplate,
Object... params)
Issue a GET REST call that returns a Connection object.
|
SchemaTypeResponse |
callSchemaTypeGetRESTCall(String methodName,
String urlTemplate,
Object... params)
Issue a GET REST call that returns an SchemaTypeResponse object.
|
TagResponse |
callTagGetRESTCall(String methodName,
String urlTemplate,
Object... params)
Issue a GET REST call that returns a TagResponse object.
|
TagsResponse |
callTagListGetRESTCall(String methodName,
String urlTemplate,
Object... params)
Issue a GET REST call that returns a TagsResponse object.
|
TagsResponse |
callTagListPostRESTCall(String methodName,
String urlTemplate,
Object requestBody,
Object... params)
Issue a GET REST call that returns a TagsResponse object.
|
callCountGetRESTCall, callGUIDGetRESTCall, callGUIDListGetRESTCall, callGUIDListPostRESTCall, callGUIDPostRESTCall, callNameListGetRESTCall, callStringMapGetRESTCall, callVoidGetRESTCall, callVoidPostRESTCallcallDeleteRESTCall, callDeleteRESTCall, callGetRESTCall, callGetRESTCall, callGetRESTCallNoParams, callPostRESTCall, callPostRESTCall, callPostRESTCallNoParams, callPutRESTCall, callPutRESTCallprotected OCFRESTClient(String serverName, String serverPlatformURLRoot, AuditLog auditLog) throws InvalidParameterException
serverName - name of the OMAG Server to callserverPlatformURLRoot - URL root of the server platform where the OMAG Server is running.auditLog - destination for log messages.InvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public OCFRESTClient(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.public OCFRESTClient(String serverName, String serverPlatformURLRoot, String userId, String password, AuditLog auditLog) 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 requestauditLog - destination for log messages.InvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public OCFRESTClient(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 AssetResponse callAssetGetRESTCall(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 AssetsResponse callAssetsGetRESTCall(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 AssetsResponse callAssetsPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
methodName - name of the method being called.requestBody - request body for the REST call - contains most of the parametersurlTemplate - 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 ConnectionResponse callConnectionGetRESTCall(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 SchemaTypeResponse callSchemaTypeGetRESTCall(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 TagResponse callTagGetRESTCall(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 TagsResponse callTagListGetRESTCall(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 TagsResponse callTagListPostRESTCall(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 REST API callparams - 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–2021 LF AI & Data Foundation. All rights reserved.