
Package ca.uhn.fhir.rest.api.server
Class ResponseDetails
java.lang.Object
ca.uhn.fhir.rest.api.server.ResponseDetails
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 Summary
ConstructorsConstructorDescriptionDeprecated.Use the two-arg constructor to initialize the fields.ResponseDetails(int theStatusCode, org.hl7.fhir.instance.model.api.IBaseResource theResponseResource) ResponseDetails(org.hl7.fhir.instance.model.api.IBaseResource theResponseResource) Constructor -
Method Summary
Modifier and TypeMethodDescriptionintorg.hl7.fhir.instance.model.api.IBaseResourceGet the resource which will be returned to the clientvoidsetResponseCode(int theResponseCode) voidsetResponseResource(org.hl7.fhir.instance.model.api.IBaseResource theResponseResource) Set the resource which will be returned to the client
-
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
Constructor
-
-
Method Details
-
getResponseCode
-
setResponseCode
-
getResponseResource
Get the resource which will be returned to the client -
setResponseResource
Set the resource which will be returned to the client
-