java.lang.Object
org.odpi.openmetadata.repositoryservices.rest.properties.OMRSAPIRequest
All Implemented Interfaces:
RequestIdService
Direct Known Subclasses:
AttributeTypeDefCategoryRequest, AttributeTypeDefRequest, ClassificationRequest, ClassificationWithEntityRequest, EntityCreateRequest, EntityDetailRequest, EntityProxyRequest, GetRequest, HistoryRangeRequest, HistoryRequest, InstanceGraphRequest, InstancePropertiesRequest, InstanceStatusRequest, MetadataCollectionIdRequest, OMRSAPIFindRequest, RelationshipCreateRequest, RelationshipRequest, TypeDefCategoryRequest, TypeDefChangeRequest, TypeDefDeleteRequest, TypeDefGalleryRequest, TypeDefPatchRequest, TypeDefPropertiesRequest, TypeDefReIdentifyRequest, TypeDefRequest, TypeDefValidationForRequest

public class OMRSAPIRequest extends Object implements RequestIdService
OMRSAPIRequest provides a common header for complex OMRS request to the OMRS REST API. It manages the parameters in the request body.
  • Constructor Details

    • OMRSAPIRequest

      public OMRSAPIRequest()
      Default constructor
    • OMRSAPIRequest

      public OMRSAPIRequest(OMRSAPIRequest template)
      Copy/clone constructor
      Parameters:
      template - object to copy
  • Method Details

    • getRequestId

      public String getRequestId()
      Return the unique identifier for the request.
      Specified by:
      getRequestId in interface RequestIdService
      Returns:
      string guid
    • setRequestId

      public void setRequestId(String requestId)
      Set up the unique identifier for the request.
      Specified by:
      setRequestId in interface RequestIdService
      Parameters:
      requestId - string guid
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Object
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Create a hash code for this element type.
      Overrides:
      hashCode in class Object
      Returns:
      int hash code