public abstract class RestfulResponse<T extends RequestDetails> extends Object implements IRestfulResponse
| Constructor and Description |
|---|
RestfulResponse(T requestDetails) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(String headerKey,
String headerValue) |
Map<String,List<String>> |
getHeaders()
Get the http headers
|
T |
getRequestDetails()
Get the requestDetails
|
void |
setOperationResourceId(org.hl7.fhir.instance.model.api.IIdType theOperationResourceId) |
void |
setOperationResourceLastUpdated(org.hl7.fhir.instance.model.api.IPrimitiveType<Date> theOperationResourceLastUpdated) |
void |
setRequestDetails(T requestDetails)
Set the requestDetails
|
Object |
streamResponseAsResource(org.hl7.fhir.instance.model.api.IBaseResource theResource,
boolean thePrettyPrint,
Set<ca.uhn.fhir.rest.api.SummaryEnum> theSummaryMode,
int theStatusCode,
String theStatusMessage,
boolean theRespondGzip,
boolean theAddContentLocation) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetResponseWriter, returnResponse, sendAttachmentResponse, sendWriterResponsepublic RestfulResponse(T requestDetails)
public void addHeader(String headerKey, String headerValue)
addHeader in interface IRestfulResponsepublic Map<String,List<String>> getHeaders()
public T getRequestDetails()
public void setOperationResourceId(org.hl7.fhir.instance.model.api.IIdType theOperationResourceId)
setOperationResourceId in interface IRestfulResponsepublic void setOperationResourceLastUpdated(org.hl7.fhir.instance.model.api.IPrimitiveType<Date> theOperationResourceLastUpdated)
setOperationResourceLastUpdated in interface IRestfulResponsepublic void setRequestDetails(T requestDetails)
requestDetails - the requestDetails to setpublic final Object streamResponseAsResource(org.hl7.fhir.instance.model.api.IBaseResource theResource, boolean thePrettyPrint, Set<ca.uhn.fhir.rest.api.SummaryEnum> theSummaryMode, int theStatusCode, String theStatusMessage, boolean theRespondGzip, boolean theAddContentLocation) throws IOException
streamResponseAsResource in interface IRestfulResponseIOExceptionCopyright © 2014–2019 University Health Network. All rights reserved.