Package ca.uhn.fhir.rest.client.impl
Class BaseClient.ResourceResponseHandler<T extends org.hl7.fhir.instance.model.api.IBaseResource>
java.lang.Object
ca.uhn.fhir.rest.client.impl.BaseClient.ResourceResponseHandler<T>
- All Implemented Interfaces:
IClientResponseHandler<T>
- Direct Known Subclasses:
BaseClient.ResourceOrBinaryResponseHandler
- Enclosing class:
BaseClient
protected class BaseClient.ResourceResponseHandler<T extends org.hl7.fhir.instance.model.api.IBaseResource>
extends Object
implements IClientResponseHandler<T>
-
Constructor Summary
ConstructorDescriptionResourceResponseHandler
(Class<T> theReturnType) ResourceResponseHandler
(Class<T> theReturnType, Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> thePreferResponseType, org.hl7.fhir.instance.model.api.IIdType theId) ResourceResponseHandler
(Class<T> theReturnType, Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> thePreferResponseType, org.hl7.fhir.instance.model.api.IIdType theId, boolean theAllowHtmlResponse) ResourceResponseHandler
(Class<T> theClass, List<Class<? extends org.hl7.fhir.instance.model.api.IBaseResource>> thePreferResponseTypes) ResourceResponseHandler
(Class<T> theReturnType, List<Class<? extends org.hl7.fhir.instance.model.api.IBaseResource>> thePreferResponseTypes, org.hl7.fhir.instance.model.api.IIdType theId, boolean theAllowHtmlResponse) -
Method Summary
Modifier and TypeMethodDescriptioninvokeClient
(String theResponseMimeType, InputStream theResponseInputStream, int theResponseStatusCode, Map<String, List<String>> theHeaders) setPreferResponseTypes
(List<Class<? extends org.hl7.fhir.instance.model.api.IBaseResource>> thePreferResponseTypes)
-
Constructor Details
-
ResourceResponseHandler
public ResourceResponseHandler() -
ResourceResponseHandler
-
ResourceResponseHandler
public ResourceResponseHandler(Class<T> theReturnType, Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> thePreferResponseType, org.hl7.fhir.instance.model.api.IIdType theId) -
ResourceResponseHandler
public ResourceResponseHandler(Class<T> theReturnType, Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> thePreferResponseType, org.hl7.fhir.instance.model.api.IIdType theId, boolean theAllowHtmlResponse) -
ResourceResponseHandler
public ResourceResponseHandler(Class<T> theClass, List<Class<? extends org.hl7.fhir.instance.model.api.IBaseResource>> thePreferResponseTypes) -
ResourceResponseHandler
public ResourceResponseHandler(Class<T> theReturnType, List<Class<? extends org.hl7.fhir.instance.model.api.IBaseResource>> thePreferResponseTypes, org.hl7.fhir.instance.model.api.IIdType theId, boolean theAllowHtmlResponse)
-
-
Method Details
-
getReturnType
-
invokeClient
public T invokeClient(String theResponseMimeType, InputStream theResponseInputStream, int theResponseStatusCode, Map<String, List<String>> theHeaders) throws ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException- Specified by:
invokeClient
in interfaceIClientResponseHandler<T extends org.hl7.fhir.instance.model.api.IBaseResource>
- Throws:
ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException
-
setPreferResponseTypes
public BaseClient.ResourceResponseHandler<T> setPreferResponseTypes(List<Class<? extends org.hl7.fhir.instance.model.api.IBaseResource>> thePreferResponseTypes)
-