Package ca.uhn.fhir.rest.client.impl
Class GenericClient
java.lang.Object
ca.uhn.fhir.rest.client.impl.BaseClient
ca.uhn.fhir.rest.client.impl.GenericClient
- All Implemented Interfaces:
ca.uhn.fhir.rest.client.api.IGenericClient
,ca.uhn.fhir.rest.client.api.IRestfulClient
- Author:
- James Agnew, Doug Martin (Regenstrief Center for Biomedical Informatics)
-
Nested Class Summary
Nested classes/interfaces inherited from class ca.uhn.fhir.rest.client.impl.BaseClient
BaseClient.ResourceOrBinaryResponseHandler, BaseClient.ResourceResponseHandler<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
Constructor Summary
ConstructorDescriptionGenericClient
(ca.uhn.fhir.context.FhirContext theContext, ca.uhn.fhir.rest.client.api.IHttpClient theHttpClient, String theServerBase, RestfulClientFactory theFactory) For now, this is a part of the internal API of HAPI - Use with caution as this method may change! -
Method Summary
Modifier and TypeMethodDescriptionca.uhn.fhir.rest.gclient.IFetchConformanceUntyped
ca.uhn.fhir.rest.gclient.ICreate
create()
ca.uhn.fhir.rest.gclient.IDelete
delete()
ca.uhn.fhir.rest.gclient.IFetchConformanceUntyped
void
ca.uhn.fhir.context.FhirContext
ca.uhn.fhir.rest.client.api.IHttpRequest
protected String
getPreferredId
(org.hl7.fhir.instance.model.api.IBaseResource theResource, String theId) ca.uhn.fhir.rest.gclient.IHistory
history()
boolean
Deprecated.ca.uhn.fhir.rest.gclient.IGetPage
loadPage()
ca.uhn.fhir.rest.gclient.IMeta
meta()
ca.uhn.fhir.rest.gclient.IOperation
ca.uhn.fhir.rest.gclient.IPatch
patch()
ca.uhn.fhir.rest.gclient.IRead
read()
org.hl7.fhir.instance.model.api.IBaseResource
read
(ca.uhn.fhir.model.primitive.UriDt theUrl) <T extends org.hl7.fhir.instance.model.api.IBaseResource>
T<T extends org.hl7.fhir.instance.model.api.IBaseResource>
Tca.uhn.fhir.rest.gclient.IUntypedQuery
search()
void
setLastRequest
(ca.uhn.fhir.rest.client.api.IHttpRequest theLastRequest) For now, this is a part of the internal API of HAPI - Use with caution as this method may change!void
setLogRequestAndResponse
(boolean theLogRequestAndResponse) Deprecated.ca.uhn.fhir.rest.gclient.ITransaction
ca.uhn.fhir.rest.gclient.IUpdate
update()
ca.uhn.fhir.rest.api.MethodOutcome
update
(ca.uhn.fhir.model.primitive.IdDt theIdDt, org.hl7.fhir.instance.model.api.IBaseResource theResource) ca.uhn.fhir.rest.api.MethodOutcome
ca.uhn.fhir.rest.gclient.IValidate
validate()
ca.uhn.fhir.rest.api.MethodOutcome
validate
(org.hl7.fhir.instance.model.api.IBaseResource theResource) <T extends org.hl7.fhir.instance.model.api.IBaseResource>
T<T extends org.hl7.fhir.instance.model.api.IBaseResource>
TMethods inherited from class ca.uhn.fhir.rest.client.impl.BaseClient
createExtraParams, fetchResourceFromUrl, getEncoding, getHttpClient, getInterceptorService, getLastResponse, getLastResponseBody, getServerBase, getSummary, getUrlBase, invokeClient, invokeClient, invokeClient, isKeepResponses, isPrettyPrint, registerInterceptor, setDontValidateConformance, setEncoding, setFormatParamStyle, setInterceptorService, setKeepResponses, setPrettyPrint, setSummary, unregisterInterceptor
Methods 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.client.api.IGenericClient
registerInterceptor, unregisterInterceptor
Methods inherited from interface ca.uhn.fhir.rest.client.api.IRestfulClient
fetchResourceFromUrl, getEncoding, getHttpClient, getInterceptorService, getServerBase, setEncoding, setFormatParamStyle, setInterceptorService, setPrettyPrint, setSummary
-
Constructor Details
-
GenericClient
public GenericClient(ca.uhn.fhir.context.FhirContext theContext, ca.uhn.fhir.rest.client.api.IHttpClient theHttpClient, String theServerBase, RestfulClientFactory theFactory) For now, this is a part of the internal API of HAPI - Use with caution as this method may change!
-
-
Method Details
-
capabilities
- Specified by:
capabilities
in interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
create
- Specified by:
create
in interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
delete
- Specified by:
delete
in interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
fetchConformance
- Specified by:
fetchConformance
in interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
forceConformanceCheck
- Specified by:
forceConformanceCheck
in interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
getFhirContext
- Specified by:
getFhirContext
in interfaceca.uhn.fhir.rest.client.api.IRestfulClient
-
getLastRequest
-
setLastRequest
For now, this is a part of the internal API of HAPI - Use with caution as this method may change! -
getPreferredId
protected String getPreferredId(org.hl7.fhir.instance.model.api.IBaseResource theResource, String theId) -
history
- Specified by:
history
in interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
isLogRequestAndResponse
Deprecated.UseLoggingInterceptor
as a client interceptor registered to your client instead, as this provides much more fine-grained control over what is logged. This method will be removed at some point (deprecated in HAPI 1.6 - 2016-06-16) -
setLogRequestAndResponse
Deprecated.- Specified by:
setLogRequestAndResponse
in interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
loadPage
- Specified by:
loadPage
in interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
meta
- Specified by:
meta
in interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
operation
- Specified by:
operation
in interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
patch
- Specified by:
patch
in interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
read
- Specified by:
read
in interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
read
public <T extends org.hl7.fhir.instance.model.api.IBaseResource> T read(Class<T> theType, String theId) - Specified by:
read
in interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
read
public <T extends org.hl7.fhir.instance.model.api.IBaseResource> T read(Class<T> theType, ca.uhn.fhir.model.primitive.UriDt theUrl) - Specified by:
read
in interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
read
- Specified by:
read
in interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
search
- Specified by:
search
in interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
transaction
- Specified by:
transaction
in interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
update
- Specified by:
update
in interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
update
public ca.uhn.fhir.rest.api.MethodOutcome update(ca.uhn.fhir.model.primitive.IdDt theIdDt, org.hl7.fhir.instance.model.api.IBaseResource theResource) - Specified by:
update
in interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
update
public ca.uhn.fhir.rest.api.MethodOutcome update(String theId, org.hl7.fhir.instance.model.api.IBaseResource theResource) - Specified by:
update
in interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
validate
- Specified by:
validate
in interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
validate
public ca.uhn.fhir.rest.api.MethodOutcome validate(org.hl7.fhir.instance.model.api.IBaseResource theResource) - Specified by:
validate
in interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
vread
public <T extends org.hl7.fhir.instance.model.api.IBaseResource> T vread(Class<T> theType, ca.uhn.fhir.model.primitive.IdDt theId) - Specified by:
vread
in interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
vread
public <T extends org.hl7.fhir.instance.model.api.IBaseResource> T vread(Class<T> theType, String theId, String theVersionId) - Specified by:
vread
in interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
LoggingInterceptor
as a client interceptor registered to your client instead, as this provides much more fine-grained control over what is logged.