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, org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponse, org.odpi.openmetadata.commonservices.ffdc.rest.GenericResponse<R>

public class SubjectAreaOMASAPIResponse<R> extends org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase implements org.odpi.openmetadata.commonservices.ffdc.rest.GenericResponse<R>
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAllResults(Collection<? extends R> results)
     
    void
    addResult(R result)
     
     
    void
    setExceptionInfo(org.odpi.openmetadata.frameworks.connectors.ffdc.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

    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

      public void addAllResults(Collection<? extends R> results)
      Specified by:
      addAllResults in interface org.odpi.openmetadata.commonservices.ffdc.rest.GenericResponse<R>
    • addResult

      public void addResult(R result)
      Specified by:
      addResult in interface org.odpi.openmetadata.commonservices.ffdc.rest.GenericResponse<R>
    • setExceptionInfo

      public void setExceptionInfo(org.odpi.openmetadata.frameworks.connectors.ffdc.OCFCheckedExceptionBase e, String className)
      Set a standard exceptional info for the response
      Parameters:
      e - exception OCFCheckedExceptionBase
      className - name of the class being called.
    • results

      public List<R> results()
      Specified by:
      results in interface org.odpi.openmetadata.commonservices.ffdc.rest.GenericResponse<R>