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 Constructor Description RestfulResponse(T requestDetails)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHeader(String headerKey, String headerValue)Map<String,List<String>>getHeaders()Get the http headersTgetRequestDetails()Get 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 requestDetailsObjectstreamResponseAsResource(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, wait
-
Methods inherited from interface ca.uhn.fhir.rest.api.server.IRestfulResponse
getResponseWriter, returnResponse, sendAttachmentResponse, sendWriterResponse
-
-
-
-
Constructor Detail
-
RestfulResponse
public RestfulResponse(T requestDetails)
-
-
Method Detail
-
addHeader
public void addHeader(String headerKey, String headerValue)
- Specified by:
addHeaderin interfaceIRestfulResponse
-
getHeaders
public Map<String,List<String>> getHeaders()
Get the http headers- Specified by:
getHeadersin interfaceIRestfulResponse- Returns:
- the headers
-
getRequestDetails
public T getRequestDetails()
Get the requestDetails- Returns:
- the requestDetails
-
setOperationResourceId
public void setOperationResourceId(org.hl7.fhir.instance.model.api.IIdType theOperationResourceId)
- Specified by:
setOperationResourceIdin interfaceIRestfulResponse
-
setOperationResourceLastUpdated
public void setOperationResourceLastUpdated(org.hl7.fhir.instance.model.api.IPrimitiveType<Date> theOperationResourceLastUpdated)
- Specified by:
setOperationResourceLastUpdatedin interfaceIRestfulResponse
-
setRequestDetails
public void setRequestDetails(T requestDetails)
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
-
-