Package ca.uhn.fhir.rest.api.server
Interface IRestfulResponse
- All Known Implementing Classes:
RestfulResponse,ServletRestfulResponse
public interface IRestfulResponse
-
Method Summary
Modifier and TypeMethodDescriptionvoidgetResponseWriter(int theStatusCode, String theStatusMessage, String theContentType, String theCharset, boolean theRespondGzip)returnResponse(ParseAction<?> outcome, int operationStatus, boolean allowPrefer, ca.uhn.fhir.rest.api.MethodOutcome response, String resourceName)This is only used for DSTU1 getTags operations, so it can be removed at some point when we drop DSTU1sendAttachmentResponse(org.hl7.fhir.instance.model.api.IBaseBinary bin, int stausCode, String contentType)sendWriterResponse(int status, String contentType, String charset, Writer writer)voidsetOperationResourceId(org.hl7.fhir.instance.model.api.IIdType theOperationResourceId)voidsetOperationResourceLastUpdated(org.hl7.fhir.instance.model.api.IPrimitiveType<Date> theOperationResourceLastUpdated)streamResponseAsResource(org.hl7.fhir.instance.model.api.IBaseResource theActualResourceToReturn, boolean thePrettyPrint, Set<ca.uhn.fhir.rest.api.SummaryEnum> theSummaryMode, int theStatusCode, String theStatusMessage, boolean theRespondGzip, boolean theAddContentLocation)
-
Method Details
-
streamResponseAsResource
Object streamResponseAsResource(org.hl7.fhir.instance.model.api.IBaseResource theActualResourceToReturn, boolean thePrettyPrint, Set<ca.uhn.fhir.rest.api.SummaryEnum> theSummaryMode, int theStatusCode, String theStatusMessage, boolean theRespondGzip, boolean theAddContentLocation) throws IOException- Throws:
IOException
-
returnResponse
Object returnResponse(ParseAction<?> outcome, int operationStatus, boolean allowPrefer, ca.uhn.fhir.rest.api.MethodOutcome response, String resourceName) throws IOExceptionThis is only used for DSTU1 getTags operations, so it can be removed at some point when we drop DSTU1- Throws:
IOException
-
getResponseWriter
Writer getResponseWriter(int theStatusCode, String theStatusMessage, String theContentType, String theCharset, boolean theRespondGzip) throws IOException- Throws:
IOException
-
sendWriterResponse
Object sendWriterResponse(int status, String contentType, String charset, Writer writer) throws IOException- Throws:
IOException
-
addHeader
-
sendAttachmentResponse
Object sendAttachmentResponse(org.hl7.fhir.instance.model.api.IBaseBinary bin, int stausCode, String contentType) throws IOException- Throws:
IOException
-
setOperationResourceLastUpdated
void setOperationResourceLastUpdated(org.hl7.fhir.instance.model.api.IPrimitiveType<Date> theOperationResourceLastUpdated) -
getHeaders
Map<String,List<String>> getHeaders() -
setOperationResourceId
-