Package ca.uhn.fhir.rest.api.server
Interface IRestfulResponse
-
- All Known Implementing Classes:
RestfulResponse,ServletRestfulResponse
public interface IRestfulResponse
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddHeader(String headerKey, String headerValue)Map<String,List<String>>getHeaders()WritergetResponseWriter(int theStatusCode, String theStatusMessage, String theContentType, String theCharset, boolean theRespondGzip)ObjectreturnResponse(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 DSTU1ObjectsendAttachmentResponse(org.hl7.fhir.instance.model.api.IBaseBinary bin, int stausCode, String contentType)ObjectsendWriterResponse(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)ObjectstreamResponseAsResource(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 Detail
-
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 IOException
This 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 UnsupportedEncodingException, IOException
-
sendWriterResponse
Object sendWriterResponse(int status, String contentType, String charset, Writer writer) throws IOException
- Throws:
IOException
-
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
void setOperationResourceId(org.hl7.fhir.instance.model.api.IIdType theOperationResourceId)
-
-