
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a response header.Get the http headersGet the requestDetailsvoidsetRequestDetails(T requestDetails) Set the requestDetailsMethods 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
commitResponse, getResponseOutputStream, getResponseWriter
-
Constructor Details
-
BaseRestfulResponse
-
-
Method Details
-
addHeader
Description copied from interface:IRestfulResponseAdds a response header. This method must be called prior to callingIRestfulResponse.getResponseWriter(int, String, String, boolean)orIRestfulResponse.getResponseOutputStream(int, String, Integer).- Specified by:
addHeaderin interfaceIRestfulResponse- Parameters:
headerKey- The header nameheaderValue- The header value
-
getHeaders
Get the http headers- Specified by:
getHeadersin interfaceIRestfulResponse- Returns:
- the headers
-
getRequestDetails
Get the requestDetails- Returns:
- the requestDetails
-
setRequestDetails
Set the requestDetails- Parameters:
requestDetails- the requestDetails to set
-