Package ca.uhn.fhir.rest.server.servlet
Class ServletRestfulResponse
java.lang.Object
ca.uhn.fhir.rest.server.RestfulResponse<ServletRequestDetails>
ca.uhn.fhir.rest.server.servlet.ServletRestfulResponse
- All Implemented Interfaces:
IRestfulResponse
-
Constructor Summary
ConstructorsConstructorDescriptionServletRestfulResponse(ServletRequestDetails servletRequestDetails) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetResponseWriter(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 theBinary, int theStatusCode, String contentType) final WritersendWriterResponse(int theStatus, String theContentType, String theCharset, Writer theWriter) Methods inherited from class ca.uhn.fhir.rest.server.RestfulResponse
addHeader, getHeaders, getRequestDetails, setOperationResourceId, setOperationResourceLastUpdated, setRequestDetails, streamResponseAsResource
-
Constructor Details
-
ServletRestfulResponse
Constructor
-
-
Method Details
-
sendAttachmentResponse
public OutputStream sendAttachmentResponse(org.hl7.fhir.instance.model.api.IBaseBinary theBinary, int theStatusCode, String contentType) throws IOException - Throws:
IOException
-
getResponseWriter
public Writer getResponseWriter(int theStatusCode, String theStatusMessage, String theContentType, String theCharset, boolean theRespondGzip) throws IOException - Throws:
IOException
-
sendWriterResponse
public final Writer sendWriterResponse(int theStatus, String theContentType, String theCharset, Writer theWriter) -
returnResponse
public Object returnResponse(ParseAction<?> outcome, int operationStatus, boolean allowPrefer, ca.uhn.fhir.rest.api.MethodOutcome response, String resourceName) throws IOException Description copied from interface:IRestfulResponseThis is only used for DSTU1 getTags operations, so it can be removed at some point when we drop DSTU1- Throws:
IOException
-