Package ca.uhn.fhir.jaxrs.server.util
Class JaxRsResponse
java.lang.Object
ca.uhn.fhir.rest.server.BaseRestfulResponse<JaxRsRequest>
ca.uhn.fhir.jaxrs.server.util.JaxRsResponse
- All Implemented Interfaces:
ca.uhn.fhir.rest.api.server.IRestfulResponse
The JaxRsResponse is a jax-rs specific implementation of the RestfulResponse.
- Author:
- Peter Van Houte | peter.vanhoute@agfa.com | Agfa Healthcare
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
commitResponse
(Closeable theWriterOrOutputStream) getResponseOutputStream
(int theStatusCode, String theContentType, Integer theContentLength) getResponseWriter
(int theStatusCode, String theContentType, String theCharset, boolean theRespondGzip) The response writer is a simple String Writer.Methods inherited from class ca.uhn.fhir.rest.server.BaseRestfulResponse
addHeader, getHeaders, getRequestDetails, setRequestDetails
-
Constructor Details
-
JaxRsResponse
The constructor- Parameters:
request
- the JaxRs Request
-
-
Method Details
-
getResponseWriter
@Nonnull public Writer getResponseWriter(int theStatusCode, String theContentType, String theCharset, boolean theRespondGzip) The response writer is a simple String Writer. All output is configured by the server. -
getResponseOutputStream
@Nonnull public OutputStream getResponseOutputStream(int theStatusCode, String theContentType, Integer theContentLength) -
commitResponse
-