public class JaxRsResponse extends RestfulResponse<JaxRsRequest>
| Constructor and Description |
|---|
JaxRsResponse(JaxRsRequest request)
The constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getParserType() |
Writer |
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(ParseAction<?> outcome,
int operationStatus,
boolean allowPrefer,
ca.uhn.fhir.rest.api.MethodOutcome response,
String resourceName) |
javax.ws.rs.core.Response |
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) |
addHeader, getHeaders, getRequestDetails, setOperationResourceId, setOperationResourceLastUpdated, setRequestDetails, streamResponseAsResourcepublic JaxRsResponse(JaxRsRequest request)
request - the JaxRs Requestpublic Writer getResponseWriter(int theStatusCode, String theStatusMessage, String theContentType, String theCharset, boolean theRespondGzip) throws UnsupportedEncodingException, IOException
public javax.ws.rs.core.Response sendWriterResponse(int theStatus, String theContentType, String theCharset, Writer theWriter)
public javax.ws.rs.core.Response sendAttachmentResponse(org.hl7.fhir.instance.model.api.IBaseBinary bin, int statusCode, String contentType) throws IOException
IOExceptionpublic javax.ws.rs.core.Response returnResponse(ParseAction<?> outcome, int operationStatus, boolean allowPrefer, ca.uhn.fhir.rest.api.MethodOutcome response, String resourceName) throws IOException
IOExceptionprotected String getParserType()
Copyright © 2014–2019 University Health Network. All rights reserved.