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
Constructors Constructor Description ResourceResponseHandler()ResourceResponseHandler(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TinvokeClient(String theResponseMimeType, InputStream theResponseInputStream, int theResponseStatusCode, Map<String,List<String>> theHeaders)BaseClient.ResourceResponseHandler<T>setPreferResponseTypes(List<Class<? extends org.hl7.fhir.instance.model.api.IBaseResource>> thePreferResponseTypes)
-
-
-
Constructor Detail
-
ResourceResponseHandler
public ResourceResponseHandler()
-
ResourceResponseHandler
public ResourceResponseHandler(Class<T> theReturnType)
-
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 Detail
-
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:
invokeClientin 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)
-
-