Package ca.uhn.fhir.rest.server.servlet
Class ServletRestfulResponse
- java.lang.Object
-
- ca.uhn.fhir.rest.server.RestfulResponse<ServletRequestDetails>
-
- ca.uhn.fhir.rest.server.servlet.ServletRestfulResponse
-
- All Implemented Interfaces:
IRestfulResponse
public class ServletRestfulResponse extends RestfulResponse<ServletRequestDetails>
-
-
Constructor Summary
Constructors Constructor Description ServletRestfulResponse(ServletRequestDetails servletRequestDetails)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WritergetResponseWriter(int theStatusCode, String theStatusMessage, String theContentType, String theCharset, boolean theRespondGzip)ObjectreturnResponse(ParseAction<?> outcome, int operationStatus, boolean allowPrefer, ca.uhn.fhir.rest.api.MethodOutcome response, String resourceName)This is only used for DSTU1 getTags operations, so it can be removed at some point when we drop DSTU1ObjectsendAttachmentResponse(org.hl7.fhir.instance.model.api.IBaseBinary bin, int stausCode, String contentType)ObjectsendWriterResponse(int theStatus, String theContentType, String theCharset, Writer theWriter)-
Methods inherited from class ca.uhn.fhir.rest.server.RestfulResponse
addHeader, getHeaders, getRequestDetails, setOperationResourceId, setOperationResourceLastUpdated, setRequestDetails, streamResponseAsResource
-
-
-
-
Constructor Detail
-
ServletRestfulResponse
public ServletRestfulResponse(ServletRequestDetails servletRequestDetails)
Constructor
-
-
Method Detail
-
sendAttachmentResponse
public Object sendAttachmentResponse(org.hl7.fhir.instance.model.api.IBaseBinary bin, int stausCode, String contentType) throws IOException
- Throws:
IOException
-
getResponseWriter
public Writer getResponseWriter(int theStatusCode, String theStatusMessage, String theContentType, String theCharset, boolean theRespondGzip) throws UnsupportedEncodingException, IOException
-
sendWriterResponse
public final Object sendWriterResponse(int theStatus, String theContentType, String theCharset, Writer theWriter) throws IOException
- Throws:
IOException
-
returnResponse
public Object returnResponse(ParseAction<?> outcome, int operationStatus, boolean allowPrefer, ca.uhn.fhir.rest.api.MethodOutcome response, String resourceName) throws IOException
Description copied from interface:IRestfulResponseThis is only used for DSTU1 getTags operations, so it can be removed at some point when we drop DSTU1- Throws:
IOException
-
-