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

public class JaxRsResponse extends ca.uhn.fhir.rest.server.RestfulResponse<JaxRsRequest>
The JaxRsResponse is a jax-rs specific implementation of the RestfulResponse.
Author:
Peter Van Houte | peter.vanhoute@agfa.com | Agfa Healthcare
  • Constructor Details

  • 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

      protected String getParserType()