public class RestCaller extends Object
| Constructor and Description |
|---|
RestCaller() |
| Modifier and Type | Method and Description |
|---|---|
static SubjectAreaOMASAPIResponse |
issueDelete(String className,
String methodName,
String url)
Issue a DELETE REST call that returns a SubjectAreaOMASAPIResponse object.
|
static SubjectAreaOMASAPIResponse |
issueGet(String className,
String methodName,
String url)
Issue a GET REST call that returns a SubjectAreaOMASAPIResponse object.
|
static SubjectAreaOMASAPIResponse |
issuePost(String className,
String methodName,
String requestBody,
String url)
Issue a POST REST call that returns a SubjectAreaOMASAPIResponse object.
|
static SubjectAreaOMASAPIResponse |
issuePostNoBody(String className,
String methodName,
String url)
Issue a POST REST call that returns a SubjectAreaOMASAPIResponse object.
|
static SubjectAreaOMASAPIResponse |
issuePut(String className,
String methodName,
String requestBody,
String url)
Issue a PUT REST call that returns a SubjectAreaOMASAPIResponse object.
|
static void |
throwJsonParseError(String className,
String methodName,
com.fasterxml.jackson.core.JsonProcessingException error) |
public static SubjectAreaOMASAPIResponse issueGet(String className, String methodName, String url) throws MetadataServerUncontactableException
className - name of the calling classmethodName - name of the calling methodurl - urlMetadataServerUncontactableException - - something went wrong with the REST call stack.public static SubjectAreaOMASAPIResponse issuePost(String className, String methodName, String requestBody, String url) throws MetadataServerUncontactableException
className - name of the calling classmethodName - name of the calling methodrequestBody - body of the rest requesturl - the URL for the REST API callMetadataServerUncontactableException - - something went wrong with the REST call stack.public static SubjectAreaOMASAPIResponse issuePostNoBody(String className, String methodName, String url) throws MetadataServerUncontactableException
className - name of the calling classmethodName - name of the calling methodurl - the URL for the REST API callMetadataServerUncontactableException - - something went wrong with the REST call stack.public static SubjectAreaOMASAPIResponse issuePut(String className, String methodName, String requestBody, String url) throws MetadataServerUncontactableException
className - name of the calling classmethodName - name of the calling methodrequestBody - body of the rest requesturl - the URL for the REST API callMetadataServerUncontactableException - - something went wrong with the REST call stack.public static SubjectAreaOMASAPIResponse issueDelete(String className, String methodName, String url) throws MetadataServerUncontactableException
className - name of the calling classmethodName - name of the calling methodurl - url for the serverMetadataServerUncontactableException - - something went wrong with the REST call stack.public static void throwJsonParseError(String className, String methodName, com.fasterxml.jackson.core.JsonProcessingException error) throws InvalidParameterException
InvalidParameterExceptionCopyright © 2018–2020 ODPi. All rights reserved.