Package ca.uhn.fhir.rest.server
Class BaseRestfulResponse<T extends RequestDetails>
java.lang.Object
ca.uhn.fhir.rest.server.BaseRestfulResponse<T>
- All Implemented Interfaces:
IRestfulResponse
- Direct Known Subclasses:
ServletRestfulResponse
,SystemRestfulResponse
public abstract class BaseRestfulResponse<T extends RequestDetails>
extends Object
implements IRestfulResponse
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a response header.Get the http headersGet the requestDetailsvoid
setRequestDetails
(T requestDetails) Set the requestDetailsMethods 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
commitResponse, getResponseOutputStream, getResponseWriter
-
Constructor Details
-
BaseRestfulResponse
-
-
Method Details
-
addHeader
Description copied from interface:IRestfulResponse
Adds a response header. This method must be called prior to callingIRestfulResponse.getResponseWriter(int, String, String, boolean)
orIRestfulResponse.getResponseOutputStream(int, String, Integer)
.- Specified by:
addHeader
in interfaceIRestfulResponse
- Parameters:
headerKey
- The header nameheaderValue
- The header value
-
getHeaders
Get the http headers- Specified by:
getHeaders
in interfaceIRestfulResponse
- Returns:
- the headers
-
getRequestDetails
Get the requestDetails- Returns:
- the requestDetails
-
setRequestDetails
Set the requestDetails- Parameters:
requestDetails
- the requestDetails to set
-