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>
public class SubjectAreaOMASAPIResponse<R> extends FFDCResponseBase implements GenericResponse<R>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SubjectAreaOMASAPIResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAllResults(Collection<? extends R> results)voidaddResult(R result)List<R>results()voidsetExceptionInfo(OCFCheckedExceptionBase e, String className)Set a standard exceptional info for the response-
Methods 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
-
-
-
-
Method Detail
-
addAllResults
public void addAllResults(Collection<? extends R> results)
- Specified by:
addAllResultsin interfaceGenericResponse<R>
-
addResult
public void addResult(R result)
- Specified by:
addResultin interfaceGenericResponse<R>
-
setExceptionInfo
public void setExceptionInfo(OCFCheckedExceptionBase e, String className)
Set a standard exceptional info for the response- Parameters:
e- exceptionOCFCheckedExceptionBaseclassName- name of the class being called.
-
results
public List<R> results()
- Specified by:
resultsin interfaceGenericResponse<R>
-
-