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,
MethodOutcome response,
String resourceName) |
javax.ws.rs.core.Response |
sendAttachmentResponse(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, streamResponseAsBundle, 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(IBaseBinary bin, int statusCode, String contentType) throws IOException
IOExceptionpublic javax.ws.rs.core.Response returnResponse(ParseAction<?> outcome, int operationStatus, boolean allowPrefer, MethodOutcome response, String resourceName) throws IOException
IOExceptionprotected String getParserType()
Copyright © 2014–2016 University Health Network. All rights reserved.