
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
ConstructorsConstructorDescriptionGenericClient(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.IFetchConformanceUntypedca.uhn.fhir.rest.gclient.ICreatecreate()ca.uhn.fhir.rest.gclient.IDeletedelete()ca.uhn.fhir.rest.gclient.IFetchConformanceUntypedvoidca.uhn.fhir.context.FhirContextca.uhn.fhir.rest.client.api.IHttpRequestprotected StringgetPreferredId(org.hl7.fhir.instance.model.api.IBaseResource theResource, String theId) ca.uhn.fhir.rest.gclient.IHistoryhistory()booleanDeprecated.ca.uhn.fhir.rest.gclient.IGetPageloadPage()ca.uhn.fhir.rest.gclient.IMetameta()ca.uhn.fhir.rest.gclient.IOperationca.uhn.fhir.rest.gclient.IPatchpatch()ca.uhn.fhir.rest.gclient.IRawHttpca.uhn.fhir.rest.gclient.IReadread()org.hl7.fhir.instance.model.api.IBaseResourceread(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.IUntypedQuerysearch()voidsetLastRequest(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!voidsetLogRequestAndResponse(boolean theLogRequestAndResponse) Deprecated.ca.uhn.fhir.rest.gclient.ITransactionca.uhn.fhir.rest.gclient.IUpdateupdate()ca.uhn.fhir.rest.api.MethodOutcomeupdate(ca.uhn.fhir.model.primitive.IdDt theIdDt, org.hl7.fhir.instance.model.api.IBaseResource theResource) ca.uhn.fhir.rest.api.MethodOutcomeca.uhn.fhir.rest.gclient.IValidatevalidate()ca.uhn.fhir.rest.api.MethodOutcomevalidate(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, unregisterInterceptorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.fhir.rest.client.api.IGenericClient
registerInterceptor, unregisterInterceptorMethods 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:
capabilitiesin interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
create
- Specified by:
createin interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
delete
- Specified by:
deletein interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
fetchConformance
- Specified by:
fetchConformancein interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
forceConformanceCheck
- Specified by:
forceConformanceCheckin interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
getFhirContext
- Specified by:
getFhirContextin 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:
historyin interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
isLogRequestAndResponse
Deprecated.UseLoggingInterceptoras 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:
setLogRequestAndResponsein interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
loadPage
- Specified by:
loadPagein interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
meta
- Specified by:
metain interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
operation
- Specified by:
operationin interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
patch
- Specified by:
patchin interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
read
- Specified by:
readin interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
rawHttpRequest
- Specified by:
rawHttpRequestin 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:
readin 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:
readin interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
read
- Specified by:
readin interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
search
- Specified by:
searchin interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
transaction
- Specified by:
transactionin interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
update
- Specified by:
updatein 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:
updatein 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:
updatein interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
validate
- Specified by:
validatein 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:
validatein 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:
vreadin 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:
vreadin interfaceca.uhn.fhir.rest.client.api.IGenericClient
-
LoggingInterceptoras a client interceptor registered to your client instead, as this provides much more fine-grained control over what is logged.