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
| Constructor and Description |
|---|
SubjectAreaOMASAPIResponse() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllResults(Collection<? extends R> entities)
Add several results for the response
|
void |
addResult(R entity)
Add single result for the response
|
R |
getHead()
Get head element from result array.
|
List<R> |
getResult()
Get all results of the response
|
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, toStringpublic void addAllResults(Collection<? extends R> entities)
entities - collection with resultspublic void addResult(R entity)
entity - - one resultpublic void setExceptionInfo(OCFCheckedExceptionBase e, String className)
e - exception OCFCheckedExceptionBaseclassName - name of the class being called.public R getHead()
Copyright © 2018–2020 ODPi. All rights reserved.