
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 TypeMethodDescriptionvoid
Adds a header to the responseReturns theIBaseOperationOutcome
resource to return to the client ornull
if none.Returns theString
payload to return to the client ornull
if none.Gets the headers for the HTTP responseint
Gets the HTTP response statussetOperationOutcome
(IBaseOperationOutcome theBaseOperationOutcome) Sets theIBaseOperationOutcome
resource to return to the client.void
setPayload
(String thePayload) Sets theString
payload to return to the client ornull
if none.
-
Constructor Details
-
StringOutcome
-
StringOutcome
public StringOutcome()
-
-
Method Details
-
getPayload
Returns theString
payload to return to the client ornull
if none.- Returns:
- This method will return null, unlike many methods in the API.
-
setPayload
Sets theString
payload to return to the client ornull
if none. -
getOperationOutcome
Returns theIBaseOperationOutcome
resource to return to the client ornull
if none.- Returns:
- This method will return null, unlike many methods in the API.
-
setOperationOutcome
Sets theIBaseOperationOutcome
resource to return to the client. Set tonull
(which is the default) if none.- Returns:
- a reference to
this
for easy method chaining
-
getResponseHeaders
Gets the headers for the HTTP response- Specified by:
getResponseHeaders
in interfaceIHasHeaders
-
addHeader
Adds a header to the response -
getResponseStatus
Gets the HTTP response status
-