
Package ca.uhn.fhir.rest.api
Class StringOutcome
java.lang.Object
ca.uhn.fhir.rest.api.StringOutcome
- All Implemented Interfaces:
IHasHeaders
Response of a http request which can return a String payload
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a header to the responseReturns theIBaseOperationOutcomeresource to return to the client ornullif none.Returns theStringpayload to return to the client ornullif none.Gets the headers for the HTTP responseintGets the HTTP response statussetOperationOutcome(IBaseOperationOutcome theBaseOperationOutcome) Sets theIBaseOperationOutcomeresource to return to the client.voidsetPayload(String thePayload) Sets theStringpayload to return to the client ornullif none.
-
Constructor Details
-
StringOutcome
-
StringOutcome
public StringOutcome()
-
-
Method Details
-
getPayload
Returns theStringpayload to return to the client ornullif none.- Returns:
- This method may return null, unlike many methods in the API.
-
setPayload
Sets theStringpayload to return to the client ornullif none. -
getOperationOutcome
Returns theIBaseOperationOutcomeresource to return to the client ornullif none.- Returns:
- This method will return null, unlike many methods in the API.
-
setOperationOutcome
Sets theIBaseOperationOutcomeresource to return to the client. Set tonull(which is the default) if none.- Returns:
- a reference to
thisfor easy method chaining
-
getResponseHeaders
Gets the headers for the HTTP response- Specified by:
getResponseHeadersin interfaceIHasHeaders
-
addHeader
Adds a header to the response -
getResponseStatus
Gets the HTTP response status
-