Class ResponseDetails

java.lang.Object
ca.uhn.fhir.rest.api.server.ResponseDetails

public class ResponseDetails extends Object
The body and status code of a FHIR response. Both the status code and response resource are mutable. The resource may be replaced entirely.
See Also:
  • Constructor Details

    • ResponseDetails

      Deprecated.
      Use the two-arg constructor to initialize the fields.
      empty constructor left for backwards compatibility.
    • ResponseDetails

      public ResponseDetails(int theStatusCode, org.hl7.fhir.instance.model.api.IBaseResource theResponseResource)
    • ResponseDetails

      public ResponseDetails(org.hl7.fhir.instance.model.api.IBaseResource theResponseResource)
      Constructor
  • Method Details

    • getResponseCode

      public int getResponseCode()
    • setResponseCode

      public void setResponseCode(int theResponseCode)
    • getResponseResource

      public org.hl7.fhir.instance.model.api.IBaseResource getResponseResource()
      Get the resource which will be returned to the client
    • setResponseResource

      public void setResponseResource(org.hl7.fhir.instance.model.api.IBaseResource theResponseResource)
      Set the resource which will be returned to the client