R - type for response results
SubjectAreaOMASAPIResponse provides a common header for Subject Area OMAS managed rest to its REST API.
It manages information about exceptions. If no exception has been raised exceptionClassName is null.public class SubjectAreaOMASAPIResponse<R> extends FFDCResponseBase implements GenericResponse<R>
| Constructor and Description |
|---|
SubjectAreaOMASAPIResponse() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllResults(Collection<? extends R> results) |
void |
addResult(R result) |
List<R> |
results() |
void |
setExceptionInfo(OCFCheckedExceptionBase e,
String className)
Set a standard exceptional info for the response
|
equals, getActionDescription, getExceptionCausedBy, getExceptionClassName, getExceptionErrorMessage, getExceptionErrorMessageId, getExceptionErrorMessageParameters, getExceptionProperties, getExceptionSystemAction, getExceptionUserAction, getRelatedHTTPCode, hashCode, setActionDescription, setExceptionCausedBy, setExceptionClassName, setExceptionErrorMessage, setExceptionErrorMessageId, setExceptionErrorMessageParameters, setExceptionProperties, setExceptionSystemAction, setExceptionUserAction, setRelatedHTTPCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitheadgetActionDescription, getExceptionCausedBy, getExceptionClassName, getExceptionErrorMessage, getExceptionErrorMessageId, getExceptionErrorMessageParameters, getExceptionProperties, getExceptionSystemAction, getExceptionUserAction, getRelatedHTTPCode, setActionDescription, setExceptionCausedBy, setExceptionClassName, setExceptionErrorMessage, setExceptionErrorMessageId, setExceptionErrorMessageParameters, setExceptionProperties, setExceptionSystemAction, setExceptionUserAction, setRelatedHTTPCodepublic void addAllResults(Collection<? extends R> results)
addAllResults in interface GenericResponse<R>public void addResult(R result)
addResult in interface GenericResponse<R>public void setExceptionInfo(OCFCheckedExceptionBase e, String className)
e - exception OCFCheckedExceptionBaseclassName - name of the class being called.public List<R> results()
results in interface GenericResponse<R>Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.