Interface GenericResponse<R>
- All Superinterfaces:
FFDCResponse
- All Known Implementing Classes:
SubjectAreaOMASAPIResponse
If an OMAS uses Generic types to implement it's Java API, then the responses can implement this interface.
-
Method Summary
Methods inherited from interface org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponse
getActionDescription, getExceptionCausedBy, getExceptionClassName, getExceptionErrorMessage, getExceptionErrorMessageId, getExceptionErrorMessageParameters, getExceptionProperties, getExceptionSystemAction, getExceptionUserAction, getRelatedHTTPCode, setActionDescription, setExceptionCausedBy, setExceptionClassName, setExceptionErrorMessage, setExceptionErrorMessageId, setExceptionErrorMessageParameters, setExceptionProperties, setExceptionSystemAction, setExceptionUserAction, setRelatedHTTPCode
-
Method Details
-
addAllResults
Add several results for the response- Parameters:
results
- collection with results
-
addResult
Add single result for the response- Parameters:
result
- - one result
-
results
Get all results of the response- Returns:
- results
-
head
Get head element from result array. Needed when we know for sure that the answer is single object- Returns:
- result
-