
Package ca.uhn.fhir.jaxrs.server.util
Class JaxRsResponse
java.lang.Object
ca.uhn.fhir.rest.server.RestfulResponse<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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getResponseWriter
(int theStatusCode, String theStatusMessage, String theContentType, String theCharset, boolean theRespondGzip) The response writer is a simple String Writer.javax.ws.rs.core.Response
returnResponse
(ca.uhn.fhir.rest.api.server.ParseAction<?> outcome, int operationStatus, boolean allowPrefer, ca.uhn.fhir.rest.api.MethodOutcome response, String resourceName) sendAttachmentResponse
(org.hl7.fhir.instance.model.api.IBaseBinary bin, int statusCode, String contentType) javax.ws.rs.core.Response
sendWriterResponse
(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
-
JaxRsResponse
The constructor- Parameters:
request
- the JaxRs Request
-
-
Method Details
-
getResponseWriter
public Writer getResponseWriter(int theStatusCode, String theStatusMessage, String theContentType, String theCharset, boolean theRespondGzip) The response writer is a simple String Writer. All output is configured by the server. -
sendWriterResponse
public javax.ws.rs.core.Response sendWriterResponse(int theStatus, String theContentType, String theCharset, Writer theWriter) -
sendAttachmentResponse
public Object sendAttachmentResponse(org.hl7.fhir.instance.model.api.IBaseBinary bin, int statusCode, String contentType) -
returnResponse
public javax.ws.rs.core.Response returnResponse(ca.uhn.fhir.rest.api.server.ParseAction<?> outcome, int operationStatus, boolean allowPrefer, ca.uhn.fhir.rest.api.MethodOutcome response, String resourceName) throws IOException - Throws:
IOException
-
getParserType
-