Package ca.uhn.fhir.rest.server
Class RestfulResponse<T extends RequestDetails>
java.lang.Object
ca.uhn.fhir.rest.server.RestfulResponse<T>
- All Implemented Interfaces:
IRestfulResponse
- Direct Known Subclasses:
ServletRestfulResponse
public abstract class RestfulResponse<T extends RequestDetails>
extends Object
implements IRestfulResponse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidGet the http headersGet the requestDetailsvoidsetOperationResourceId(org.hl7.fhir.instance.model.api.IIdType theOperationResourceId) voidsetOperationResourceLastUpdated(org.hl7.fhir.instance.model.api.IPrimitiveType<Date> theOperationResourceLastUpdated) voidsetRequestDetails(T requestDetails) Set the requestDetailsfinal ObjectstreamResponseAsResource(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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.fhir.rest.api.server.IRestfulResponse
getResponseWriter, returnResponse, sendAttachmentResponse, sendWriterResponse
-
Constructor Details
-
RestfulResponse
-
-
Method Details
-
addHeader
- Specified by:
addHeaderin interfaceIRestfulResponse
-
getHeaders
Get the http headers- Specified by:
getHeadersin interfaceIRestfulResponse- Returns:
- the headers
-
getRequestDetails
Get the requestDetails- Returns:
- the requestDetails
-
setOperationResourceId
- Specified by:
setOperationResourceIdin interfaceIRestfulResponse
-
setOperationResourceLastUpdated
public void setOperationResourceLastUpdated(org.hl7.fhir.instance.model.api.IPrimitiveType<Date> theOperationResourceLastUpdated) - Specified by:
setOperationResourceLastUpdatedin interfaceIRestfulResponse
-
setRequestDetails
Set the requestDetails- Parameters:
requestDetails- the requestDetails to set
-
streamResponseAsResource
public 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 - Specified by:
streamResponseAsResourcein interfaceIRestfulResponse- Throws:
IOException
-