Class SubjectAreaOMASAPIResponse<R>
java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase
org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse<R>
- Type Parameters:
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.
- All Implemented Interfaces:
Serializable
,FFDCResponse
,GenericResponse<R>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAllResults
(Collection<? extends R> results) Add several results for the responsevoid
Add single result for the responseresults()
Get all results of the responsevoid
setExceptionInfo
(OCFCheckedExceptionBase e, String className) Set a standard exceptional info for the responseMethods inherited from class org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase
equals, getActionDescription, getExceptionCausedBy, getExceptionClassName, getExceptionErrorMessage, getExceptionErrorMessageId, getExceptionErrorMessageParameters, getExceptionProperties, getExceptionSystemAction, getExceptionUserAction, getRelatedHTTPCode, hashCode, setActionDescription, setExceptionCausedBy, setExceptionClassName, setExceptionErrorMessage, setExceptionErrorMessageId, setExceptionErrorMessageParameters, setExceptionProperties, setExceptionSystemAction, setExceptionUserAction, setRelatedHTTPCode, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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
Methods inherited from interface org.odpi.openmetadata.commonservices.ffdc.rest.GenericResponse
head
-
Constructor Details
-
SubjectAreaOMASAPIResponse
public SubjectAreaOMASAPIResponse()
-
-
Method Details
-
addAllResults
Description copied from interface:GenericResponse
Add several results for the response- Specified by:
addAllResults
in interfaceGenericResponse<R>
- Parameters:
results
- collection with results
-
addResult
Description copied from interface:GenericResponse
Add single result for the response- Specified by:
addResult
in interfaceGenericResponse<R>
- Parameters:
result
- - one result
-
setExceptionInfo
Set a standard exceptional info for the response- Parameters:
e
- exceptionOCFCheckedExceptionBase
className
- name of the class being called.
-
results
Description copied from interface:GenericResponse
Get all results of the response- Specified by:
results
in interfaceGenericResponse<R>
- Returns:
- results
-